The Shift key is not detected when defining some shortcuts
I am trying to define a shortcut that uses Shift + Up as a hotkey, but the Shift key is not detected when I press it in the "Enter Shortcut Sequence" menu. It is strange that for some other hotkeys this key is detected (e.g. Shift + A, Shift + B, Shift + C...).
I found this Musescore page reporting the problem. However, it is dated December 2014:
https://musescore.org/en/node/41551
Is there currently, as of 2021, any solution available to fix this problem?
Comments
#41551: Shortcuts using shift are not registered correctly. is closed since 6 years, and most probably enttirely unrelated
Seems than indeed Shift is not available as a modifier for the arrow keys
Actually the fix for the above mentioned issue might be the cause for this.
In reply to #41551: Shortcuts using… by Jojo-Schmitz
Funny enough: Shift+up/Down/Left/Right are all used in the existing shortcut already.
Looks like a bug to me, please report in the issue tracker
Indeed, this
esp. that
|| (e->key() >= 0x01000000)
excludes arrow keys here, the Up key sends0x1000013
In reply to Indeed, this //… by Jojo-Schmitz
actually it is already the
|| (e->key() > 0x5a)
, the condition after that can never get reached, is utter nonsenseIn reply to Indeed, this //… by Jojo-Schmitz
Thanks, how should this code be used?
In reply to Thanks, how should this code… by Jaraiz
No idea how to correct the code there. It pretty clearly is a bug though
Very strange that it went unnoticed ever since MuseScore 2.0
Edit: it did not, see #219191: can't create non-alphanumeric keyboard shortcuts using "shift" key