Terry J. Reedy <tjre...@udel.edu> added the comment:

What makes IDLE different from other desktop apps is that is it written in 
Python, uses the tkinter wrapping of cross-platform tcl/tk, and allows users to 
customize nearly all hotkey shortcuts.  But tk only allows Ascii chars, with 
modifiers, for hotkeys.  This issue would be much easier if IDLE had a fixed 
set of bindings, or even a fixed set for each major platform.

Issue 46052 is a duplicate of this.  In experiments reported there, using the 
Win10 Russian IME, I determined that the event.char for a Ctrl + letter-key 
combination is the corresponding Ascii control character, even when switched to 
Russian.  The difference is that event.keysym is '??' instead of an ascii 
letter and event.keysym_num is the unicode ordinal of the russian letter 
instead of the ascii letter.  So ('c', 99) becomes ('??', 1089).  I propose on 
#46052 to solve these issues by undoing this change and generating the event 
that would have happened in ENG mode.

----------
resolution:  -> duplicate
stage: test needed -> resolved
status: open -> closed
superseder:  -> Ctrl+C, C+V in tk.Text on Windows do not work with Cyrillic keys

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31244>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to