Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-41806

[REG] QCompleter does not handle the Esc key on OS X (regression from Qt 4)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2: Important P2: Important
    • 5.12.1
    • 5.3.2
    • None
    • OS X 10.9
    • macOS

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            liaqi Liang Qi
            kovid Kovid Goyal
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes