Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.7.1
-
Mac OS X
-
-
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.