MuseScore icon indicating copy to clipboard operation
MuseScore copied to clipboard

[MU4 Issue] Default keyboard shortcut for "Insert measures at end of score..." does not work (MacOS)

Open Salavin opened this issue 2 years ago • 2 comments

The default keyboard shortcut for "Insert measures at end of score..." (OPT + Shift + B) does not appear to work.

To Reproduce Steps to reproduce the behavior:

  1. Open a score
  2. Use the keyboard shortcut OPT + Shift + B (assuming that shortcut is bound to something)

Expected behavior The dialogue box for appending measures to the end of the score to appear (or whatever action is currently bound to that shortcut, as it doesn't appear to be isolated to that specific action).

Platform information

  • OS: macOS 13.1

Additional context

  • Changing to a different shortcut is a workaround (tried OPT + Shift + A and OPT + Shift + C; both worked)
  • Changing to a different shortcut and then changing back to the default (either by using the "Reset to default" or by manually changing it back) does not fix the issue
  • Changing a different shortcut that does work to OPT + Shift + B causes that shortcut to break as well

Salavin avatar Jan 14 '23 20:01 Salavin

After resetting the item to default, it definitely has a shift in there: image

Salavin avatar Jan 15 '23 00:01 Salavin

This is an interesting one. The problem seems to be that opt-shift-B generates a "dotless i" unicode character (ı) - which is being resolved to a regular "I" by the application. Even though many opt-shift combinations produce special characters, opt-shift-B seems to be the only one that behaves this way.

You can see the effect this has if you provide no bindings to opt-shift-B in the shortcuts menu - pressing opt-shift-B will instead open the "new instruments" dialog (since this is bound to the "I" shortcut).

mathesoncalum avatar Sep 07 '23 16:09 mathesoncalum

It looks like this is a bug in qt. see https://bugreports.qt.io/browse/QTBUG-19156

Eism avatar Sep 12 '23 08:09 Eism

The default shortcut of Ctrl + Ins to add a bar before won't work for me on Windows, is this related/covered in this issue?

jmwmusic avatar Nov 20 '23 00:11 jmwmusic

@jmwmusic Ctrl+Ins is meant to pop up a dialog asking how many measures to insert. Ins by itself is meant to simply insert a single measure. Both work for me, but sometimes certain keyboard layouts send different codes and they aren't always handled correctly. What keyboard layout do you have? Does Ins work by itself?

MarcSabatella avatar Nov 20 '23 15:11 MarcSabatella

I am using full desk top layout with NVDA. When I press NVDA + 1 to go into input help on it will then say what each key pressed does. Insert just says NVDA and Ctrl + Insert reports NVDA + Ctrl. So guess the fact that this key is the NVDA modifier is the issue. If I press NVDA + F2 which is the gesture to pass the next key stroke through I can get both Ins and Ctrl + Ins to work as expected adding a bar before or opening the dialogue respectively. I suspect if I could create shortcuts it may well work to go in and reassign these to the same keys but it would recognise them as the NVDA modifier and Ctrl + NVDA. Is there any way your end those can be added to that default shortcut so they automatically work with NVDA without having to be customised or passed through?

jmwmusic avatar Nov 20 '23 23:11 jmwmusic

Ah yes, if Insert is your NVDA key, it won't work in applications. I don't see how an application could force NVDA to pass keys through to it, but that's why the pass-thru function exists within NVDA. So I'm not quite sure what you're asking. FWIW, I recommend setting your NVDA key to caps lock since it's much less likely to do anything interesting except annoy people when used in forums :-). But of course, it would be great if we could fix the MuseScore shortcut dialog to actually be accessible! That is issue https://github.com/musescore/MuseScore/issues/17923.

MarcSabatella avatar Nov 21 '23 00:11 MarcSabatella

Marc I was wondering if you could test out with NVDA running if you go to the create shortcuts and redefine the one for bringing up the insert bar dialogue box. If you press Ctrl + Ins does it add Ctrl + NVDA and then work? I know i can create shortcuts using the NVDA key. So in fact this would be the same shortcut but just teaching it that it is recognised as something different. If that works my further question then is whether there is any way to add this as a second default shortcut in MuseScore (even though it is the same key press) so that NVDA users can use it without having to do anything extra.

Most NVDA users will have both Caps Lock and Ins as NVDA modifiers. It is helpful for a touch typist to have one either side. Also, the in and out of review mode which is the most used gesture is generally easier and more accurate as Ins + space than Caps Lock + space as there is less clutter around Ins that might result in a wrong key press. I certainly wouldn't contemplate changing it generally, although profiles can be made for just one programme, but this adds more complications, few users know how to use them.

Also, if the mnemonic shortcuts were working in menus and advertised to screen readers Alt + A B I or whatever it is for Insert bar could be used.

jmwmusic avatar Nov 21 '23 01:11 jmwmusic

Sorry, I'm not around a Windows computer this week. In any case, this is something better to discuss on the Support forum on musescore.org; it's not related to this issue. If no one else responds there before next week I can certainly check.

MarcSabatella avatar Nov 21 '23 14:11 MarcSabatella