Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.1.0 , 5.1.1
-
Windows 7, Linux
-
929d6d6b9b31967f13bcd51a421678edcb06d184
Description
The QQuickControls Action item receives keyPressEvents before the Quick Items get a chance to evaluate them.
This gives some serious limitations. For example: If "Space" is set as keyboard shortcut in a play/pause Action, it means the spacebar can never be used in a TextField input in the same application, even if the TextField has active focus. It gets worse once Action shortcuts are defined for cursor keys, or even single letter keys!
The same scenario works much better using QWigets. QLineEdit will receive and accept the QKeyPressEvent first (if used there), so it doesn't propagate to the QAction at all. I suggest that QQuickControls Action should behave this way instead.
Attachments
Issue Links
- relates to
-
QTBUG-38986 The eventFilter function gets QKeyEvent twice for a single keypress with ShortcutOverride event.
-
- Closed
-