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

Details

    • macOS
    • 02cc57f4edbae450ecfa8368052afa44f8aeee19

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes