sonic-pi icon indicating copy to clipboard operation
sonic-pi copied to clipboard

Save Code Shortcut not working (and others)

Open jonnyhotchkiss opened this issue 2 years ago • 1 comments

Expected behaviour: save dialog pops up, like when using menu Observed behaviour: nothing Others also affected, but these are the most useful. on windows 10 lenovo, uk layout

S-M-s - Save contents of buffer to a file S-M-o - Load contents of buffer from a file

anyone else with any issues? anyway to debug?

jonnyhotchkiss avatar Sep 26 '23 22:09 jonnyhotchkiss

In case further information helps, I'm trying to use SonicPi using a keyboard, where possible. I'm not sure what the conventions are on other platforms, but Windows Menus are usually accessible via their Menu Names.

💡 The quickest solution I can think of that suits all is to provide users the ability to configure the menu names, or labels, so that

  • no change required for all users that want to keep existing behaviour that doesn't clash with the existing extensive kb-config (alt+l alt+i alt+v alt+c)
  • configurable menu names - &Live would be focussable with Alt+L or Meta+L, another Meta+L press would focus &Language menu, if similarly configured

💡💡 Another option could be to allow users the ability to remap shortcuts, so meta+ 1-7 could be dedicated to focussing menu 1-7 (currently meta+1 is mapped to "About Window")

💡💡💡 A happy compromise could be a two-press combo, eg

  1. Meta focusses menubar
  2. Keypress (eg l ) focusses first matching menu (perhaps also underscoring to highlight)

Does that make sense? (I don't know how to underline in Markdown!)

Finally (back to original issue!), does anyone else use the save function on windows, and does the shortcut work?

image

Alt+Shift+S does nothing

Workaround Combo - Alt (Meta), Right-Cursor, Space, Enter

iamjonny avatar Oct 26 '23 12:10 iamjonny