-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
5.3.2
-
None
-
OS X 10.9
On OS X, if you have a QCompleter with completion mode set to popup inside a QDialog and you press the Esc key, instead of closing the completion popup, the entire dialog closes.
See attached test case. Run it, type "a" to open the completer, then press Esc. The entire dialog is closed instead of just the completer.
This is a regression from Qt 4 and is inconsistent with how the Esc key behaves on all other platforms and in native OS X apps.
The reason for this regression is that in Qt 5 on OS X, the Esc key generates an InputMethodQuery event (Qt::ImHints | Qt::ImEnabled). This is not filtered out by QCompleter.