-
Type:
Bug
-
Status: Reported
-
Priority:
P2: Important
-
Resolution: Unresolved
-
Affects Version/s: 5.9.3, 5.9.4, 5.12.0
-
Fix Version/s: None
-
Component/s: GUI: Basic Input System (keyboard, mouse, touch)
-
Labels:None
-
Environment:Ubuntu 18.04 LTS, x86_64, Intel i5, gcc
Windows 10, mingw
-
Platform/s:
Summary:
`QKeySequence::keyBindings()` returns a `QList<QKeySequence>`.
`QKeySequence::StandardKey(63)` returns, correctly, the standard key for 'Save as'.
However, calling:
QKeySequence::keyBindings(QKeySequence::StandardKey(63))
returns an empty QList.
Expected behaviour:
A QList containing something similar to QKeySequence("Ctrl+Shift+S") should be returned.
This works with every other StandardKey that I've tested so far. For example, for the standard 'Save' key, a QList containing QKeySequence("Ctrl+S") is returned.
Background:
In MuseScore, using Qt, we handle common shortcuts using QKeySequence::StandardKey. This is to provide correct cross-platform implementations without us ourselves having to worry about it too much.
Multiple testers report this bug, on Windows and Linux, building with different Qt versions.