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

QKeySequenceEdit doesn't work properly with some Cmd shortcuts on non-English keyboards (Mac only)

XMLWordPrintable

    • macOS
    • 02cc57f4edbae450ecfa8368052afa44f8aeee19

      STEPS TO REPRODUCE:
      1. Build and run the attached test app.
      2. Plug in a French keyboard.
      3. Switch to the French input source in the OS.
      4. Click on the QKeySequenceEdit in the middle of the window.
      5. Press 'Cmd->' (this is the key to the right of the left shift key, together with Cmd and Shift)

      EXPECTED: The shortcut reads 'Cmd->', or maybe 'Shift-Cmd-<'
      ACTUAL: The shortcut reads 'Shift-Cmd->'.

      This does not exist, and will therefore not work if later assigned as the key sequence for a shortcut.

      Similar to QTBUG-57928, I believe this to be an incorrect assumption in QKeySequenceEditPrivate::translateModifiers. In this case though, it's failing for a different reason: the 'text' string is empty (because the Cmd key is held). It should probably fall back to the event's key in this case. Oddly the equivalent key on the Italian keyboard works fine.

        For Gerrit Dashboard: QTBUG-57931
        # Subject Branch Project Status CR V

            andysh Andy Shaw
            jlarcombe James Larcombe
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes