musescore / musescore/MuseScore
Preferences > Shortcuts: cannot input a shortcut of the form `Shift` + special key
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 15.1k
- Forks
- 3.3k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 91
Description
To Reproduce
Steps to reproduce the behavior:
-
Go to Preferences > Shortcuts
-
Choose an action to define a shortcut for
-
In the popup, try to enter a shortcut of the form Shift + a special key, for example:
Space bar- Backspace / delete
- Return / Enter
- Tab
the F1...F12 keysArrow keys
-> Result: the Shift key is ignored.
Expected behavior
The Shift key should not be ignored.
Platform information
- OS: at least macOS, but probably all of them
Additional context
In src/framework/shortcuts/shortcutstypes.h, the method correctKeyInput actively drops the Shift modifier. I think this is a left-over from MS3's shortcuts system, which worked fundamentally different. The fix is probably as simple as removing this code.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/framework/shortcuts/shortcutstypes.h and inspect correctKeyInput, then reproduce the issue through Preferences > Shortcuts using Shift with special keys such as Enter, Tab, Backspace, function keys, and arrows. Done means those shortcuts retain the Shift modifier on the affected platform(s) and the shortcut-entry behavior is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 42/100