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

[Reg 6.1->6.2] Unexpected value for QKeyEvent::key() if Ctrl+letter is pressed

    XMLWordPrintable

Details

    • macOS
    • 137ba2aba858bc32350e82ef6a1da91266c7f432

    Description

      See attached example.

      • handle keyPressEvent in a widget
      • user presses Ctrl+a (in Qt terms: Meta+a)
      • first event is for Ctrl
      • exected: second event is for key 'a' with key()==65
      • actual: second event has key()==1

      This is a behavior change wrt Qt 5, and I wonder what use it has, and how I'm supposed to handle it. It breaks the "Record Shortcut" functionality in Qt Creator when built with Qt 6.

      Attachments

        Issue Links

          Activity

            People

              vhilshei Volker Hilsheimer
              con Eike Ziller
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: