Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.8.5, 5.2.0, 5.2.1
-
None
-
Tested on Mac, OSX 10.9.1, with Qt 4.8.5, 5.2.0, 5.2.1.
The other modifiers (Shift, Control, Option) work correctly.
No similar problem on Windows platform.
-
-
25e67bcacac690be4971cfab16cd838653d0e7c6
Description
On Mac, the Command (⌘) key prevents keyRelease events on regular keys.
Follow this scenario, while listening to QWidget's keyPressEvent and keyReleaseEvent:
1. Press down the command key
2. Press down a regular key (say 'T')
3. Release the 'T' key
4. Release the command key
Expected resulting sequence:
1. keyPressEvent (command key)
2. keyPressEvent (T key)
3. keyReleaseEvent (T key)
4. keyReleaseEvent (command key)
Actual sequence:
1. keyPressEvent (command key)
2. keyPressEvent (T key)
3. keyReleaseEvent (command key)
The attached minimal application shows the problem.
This is a problem when an application needs to track the set of pressed keys (not only modifier keys).