Skip to content
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

Issues with KeyEvent on Mac OS X #37

Open
pberkes opened this issue Oct 24, 2011 · 0 comments
Open

Issues with KeyEvent on Mac OS X #37

pberkes opened this issue Oct 24, 2011 · 0 comments

Comments

@pberkes
Copy link
Contributor

pberkes commented Oct 24, 2011

There are a few issues with KeyEvent on Mac:

  1. Qt swaps the Ctrl and the Cmd key, while wx does not. As a result, KeyEvent.control_down is set to different values for the same key press on the two backends

  2. There is no flag for the Cmd key in KeyEvent

  3. In wx, Cmd is mapped to '\x00' instead of 'Menu'

  4. In wx, in a combination of Ctrl and letter, the 'key' attribute is set to a unicode instead of the letter. For example, Ctrl-C results in control_down=True (correct), but key='\x03' (should be u'c').

You can use this UI to have a look at KeyEvents in different toolkits, and to preview the proposed new behavior:
https://gist.github.com/1310607

I'm about to submit a pull request from branch 'fix_ctrl_cmd' that should fix 1-4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant