Issues with KeyEvent on Mac OS X
- Dominant language
- C
- Stars
- 97
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.