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

Regression: Popups do no longer close on Escape key if an ApplicationShortcut for escape exists

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.6.0
    • 5.2.1, 5.3.0
    • QPA
    • OS X 10.9
    • macOS

    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

        1. popup.zip
          2 kB
        2. untitled1.zip
          2 kB
        For Gerrit Dashboard: QTBUG-39415
        # Subject Branch Project Status CR V

        Activity

          People

            vestbo Tor Arne Vestbø
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes