New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hot keys must work in any keyboard layout #46127
Comments
In most platform-depended applications hot keys are working by the Some application menus is displaying keyboard shortcut localized to main IDLE is not. :( Can any one do something with it unpleasant situation? |
Not being familiar with localized keyboards, I don't understand your PS. What OS? |
I *think* Nashev is talking about assigning hot keys by scan code rather E.g. on a German keyboard the 'z' and 'y' are switched and the 'z' key |
So what's a hot key? Now I'm really confused. I don't recall anything |
Christian Heimes schrieb:
On which platforms do hotkeys have that behavior? I've never seen it. |
Some computer games define hot keys by scan code rather than by |
WOW, so active discussion! OS - Windows & Mac OS X, both Programs - most system and many others. Keyboard layouts - I mean mostly non latin (see In case of russian keyboard layout i have in place of latin char 'x' In Windows we have messages WM_KeyDown and WM_KeyUp that send always key P.S.: Samples of localized showing of the hot keys in menu based on |
IDLE is written using Tkinter, not native Windows UI programming APIs, I If you want something to happen on this, I suggest you try to create a |
IDLE lets you configure your own mappings without doing any programming. From the menu, pick Options, Configure Idle and goto the Keys tab. |
Guido, I think now it is must be suggestion to TK team, in they's issue Raymond, I know I can make try localized hot key mapping for my keyboard |
(sorry to be joining in late, but I just happened upon this...) Nashev, if you configured your IDLE's keys to fit a Russian keyboard IMHO, specifically in the case of IDLE, binding to scan codes instead of |
https://bugzilla.mozilla.org/show_bug.cgi?id=69230 - it is the same |
That bug report is talking about gtk and modifiers affecting bindings Nevertheless, after reading your comments I came to the conclusion that import Tkinter
def test(event):
if event.keysym_num == ord('x') and event.state & 4:
print "Ctrl-x!"
root = Tkinter.Tk()
root.bind('<KeyPress>', test)
root.mainloop() Maybe you can test this and verify if it works like you wanted. But I |
From msg86386 "Nevertheless, after reading your comments I came to the conclusion that doing what you want is very unlikely to happen." so closing. |
it does seem that the consensus is that this is not a generally desirable feature. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: