Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.2.1, 5.3.0
-
OS X 10.9
Description
That's a regression to Qt 5.2.0 (and Qt4)
If a QShortcut with Qt::Key_Escape is registered with context ApplicationShortcut, then popup windows like context menus do no longer close on pressing escape.
See attached minimal example.
Compile and run with Qt 5.2.0, right click in the line edit to open the context menu, press escape: the context menu is closed, the shortcut doesn't trigger.
Compile and run with Qt 5.2.1, right click in the line edit to open the context menu, press escpae: the context menu stays open, the shortcut is triggered.
This affects Qt Creator, which registers the escape shortcut for "go back to editor".
Attachments
For Gerrit Dashboard: QTBUG-39415 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
97763,1 | Cocoa: Close popups on escape. | 5.4 | qt/qtbase | Status: ABANDONED | -2 | 0 |
125387,3 | OS X: Forward key events to popup window if present | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |