Ctrl+Shift+3 for sharp shortcut in text entry?
The hardcoded shortcut for sharps is ctrl+shift+#. That makes it inaccessible for some keyboards (German, Belgian, Spanish).
Adding an alternative shortcut of ctrl+shift+3 (the key from which # is accessed, after all), would make it compatible with the Spanish keyboard. Would it also make it compatible with German and Belgian keyboards?
[Edit: after downloading the keyboard layouts and trying them:
adding ctrl+shift+3 would add support for the shortcut for QWERTZ and Spanish QWERTY.
adding ctrl+shift+" would add support for the shortcut for AZERTY.]
Comments
There is actually no # key on American keyboards. The reason for the shift is to make the # symbol by pressing shift+3. I'm not sure how this affects the internal workings of MuseScore though.
In reply to There is actually no # key… by mike320
In QWERTY(es) and AZERTY keyboards # is accessed through altgr+3 (normally ctrl+alt+3), in QWERTZ through a dedicated symbol that shifted is '
There is a convention to use ctrl+shift+symbol for text-entry input shortcut (well, recently broken by introducing the synalepha shortcut), so I'm not very into having, for example, ctrl+alt+3 for sharps.
Idk, maybe synalepha should be ctrl+shift+_ after all. Even so, I think that shortcuts are being redesigned for 4.0 (do you know if it's true?), so maybe I'll just let it go.
In reply to In QWERTY(es) and AZERTY… by Asmatzaile
My understanding is that shortcuts are going to be redesigned in 4.0 but I haven't seen a PR for it and haven't checked out any nightlies yet. ctrl+shift+_ on American windows forces an underline in a lyric so that isn't available for the synalepha. I do understand that the convention for text shortcuts is ctrl+shift+ symbol because things like ctrl+f enters a forte symbol not F and there are others. # follows the convention but like I said, it's technically ctrl+# on American keyboards and if I make # the shortcut for a sharp during note entry it will say to only press # not shift+3.
When shortcuts get redone, I believe their context will be better managed so you can customize the synalepha for your system. I don't know if it's worth it at this point to go too deep into shortcuts like this that have problems on other systems or not. We are getting ready for the beta release and it'll be up to others to decide if work on this would get merged into the 3.6 release.
In reply to My understanding is that… by mike320
Nice to know :)
I won't try to change anything about the synalepha shortcut so.
what 'letter' do you get when pressing Shift+#? I get a ' (Apostrophe) on a German QWERTZ, a British QWERTY gets a ~ (Tilde)
See https://github.com/musescore/MuseScore/pull/7093, can you check whether that'd work for you?
Actually this has been merged and so is in 3.6 Beta
In reply to what 'letter' do you get… by Jojo-Schmitz
On a Spanish QWERTY, pressing Shift+# returns · (middle dot). On a French or a Belgian AZERTY, pressing Shift+# returns 3 (the number).
The shortcut doesn't work for these keyboard layouts in 3.6 Beta, but I'm 99% sure that adding
case Qt::Key_periodcentered: // e. g. QWERTY (ES)
case Qt::Key_3: // e. g. AZERTY (FR, BE)
would make it work.
In reply to On a Spanish QWERTY,… by Asmatzaile
Except that that (for AZERTY) would collide with the voice3 shortcut.
In reply to Except that that (for AZERTY… by jeetee
But that shortcut isn't accessible from text edit mode, is it?
In reply to But that shortcut isn't… by Asmatzaile
It should indeed not. Testing needed though, see below
In reply to On a Spanish QWERTY,… by Asmatzaile
I'm trying to update my forked 3.x branch to make this change myself, but typing
$git pull origin 3.x
returns "fatal: couldn't find remote ref 3.x". I've searched for the solution but I can't find it. Any ideas?In reply to I'm trying to update my… by Asmatzaile
If origin is your fork, then you might want
git pull remote 3.x
instead. orgit pull musescore 3.x
depending on how you aliased the musescore repoIn reply to If origin is your fork, then… by jeetee
Thank you! Although that didn't solve the problem directly, it gave a different error message that led to fixing it :)
In reply to On a Spanish QWERTY,… by Asmatzaile
Let's try, see https://github.com/musescore/MuseScore/pull/7099