Bug: Single-key shortcuts conflict with typing in MS3
In MuseScore 3, you cannot type letters that have been mapped to shortcuts if the function in question does not have a single-letter shortcut by default.
For instance, if I map the M key (normally "Toggle multimeasure rests") to "Show/hide mixer" (normally F10), typing 'm' in staff text, lyrics, title, etc. gives the error "Command toggle-mixer not valid in current state", and types nothing.
However, I can type the letter M using whatever non-letter shortcut I've mapped "toggle multimeasure rests" to. At the same time, if I set "toggle multimeasure rests" to a different single letter, that key still types the expected letter.
This issue is NOT present in MS4, but is still a fairly egregious bug in legacy software.
Issue was found on a Mac running Monterey 12.6.
Comments
Hmm, here's the code for those:
So there is specialy-casing going on for Mac. That code is in since ages, at least since MuseScore 2, but probably in MuseScore 1 already
In reply to Hmm, here's the code for… by Jojo-Schmitz
So what does this mean? Am I doing something wrong? Is the bug genuine?
After a little more testing, it's a little less pervasive than I thought, but it still conflicts with most of the panel toggles (synthesizer, inspector, etc.) and not just the mixer.
In reply to So what does this mean? Am I… by Rose Egbert
That should mean that this is basically a day one bug and only on Mac.
In reply to That should mean that this… by Jojo-Schmitz
Fair enough. Still annoying though.
In reply to Fair enough. Still annoying… by Rose Egbert
If you'd be willing to test a development build, I can attempt to fix it.
Other than that there won't be any (official) 3.x update, 3.6.2 is and will stay the last
In reply to If you'd be willing to test… by Jojo-Schmitz
Always happy to do that.
In reply to Always happy to do that. by Rose Egbert
OK, I'll give it a go, tomorrow. I'd just remove that special case for Mac.
In reply to Always happy to do that. by Rose Egbert
Check https://github.com/Jojo-Schmitz/MuseScore/pull/92 for the code change
And https://github.com/Jojo-Schmitz/MuseScore/actions/runs/4488258712 for the development build (once the build finished in some good hour from now)
In reply to Always happy to do that. by Rose Egbert
I don't think it works though, as in 3.6.2 on Windows 'M' as the short for "toggle-mixer" has the very same issue.
I then don't understand though, why it has on Mac
In reply to I don't think it works… by Jojo-Schmitz
I guess even on Mac it never worked in Text- or Lyrics entry.
Anyway, for now I give up on this bug
In reply to I guess even on Mac it never… by Jojo-Schmitz
More than fair! Thanks for giving it a shot.
In reply to Hmm, here's the code for… by Jojo-Schmitz
I believe that fix had been put in place, as on a Mac F10 as s shortcut won't work
By default MuseScore (at least 3.6.2) doesn't have a default shortcut set up for this on Mac. In the old days (or 0.9.6) the shortcut might have been 'M' there, not sure
See https://musescore.org/en/node/4817, from back in stone age, MuseScore 0.9.6