kmatheussen / radium

A graphical music editor. A next generation tracker.
http://users.notam02.no/~kjetism/radium/
GNU General Public License v2.0
843 stars 36 forks source link

[Feature request] Add alternative keyboard shortcuts without using super (win) key #1393

Closed akimaze closed 9 months ago

akimaze commented 1 year ago

Hi, In my case using the super key (win key) doesn't work. For example, in the case of the Cinnamon desktop, each use does not work or additionally displays the system menu. I replaced some of shortcuts with the Ctrl+Shift version (Win+ Z -> Ctrl+Shift + A, Win + B -> Ctrl + Shift + B, Win + C -> Ctrl + Shift + C, Win + V -> Ctrl + Shift + V, Win + X -> Ctrl + Shift + X, Win + Space -> Ctrl + Shift + Space). Some things I do only by using menu (e.g transpose selected region). But this is not ideal solution.

Currently the biggest problem (for me) is the horizontal scrolling of the sequencer (I scroll editor horizontally only by dragging scrollbar or change track with num keyboard - that is also not optimal). Sequencer is crucial because when you make strong zoom to correct some audio sample position there is no good way to scroll the view when super key does not work (or show system menu;). So I basically keep my own build with modification:

In Qt_sequencer.cpp line about 915:

  } else if (e->modifiers() & Qt::AltModifier) { 
  //} else if (HorizontalModifierPressed(e->modifiers())) {

    //SEQUENCER_zoom_or_move_leftright(false, (e->angleDelta().y() > 0) ? 1 : -1);;
    SEQUENCER_zoom_or_move_leftright(false, (e->angleDelta().x() < 0) ? 1 : -1);;

Thanks to that I can move horizontally the sequencer with Alt+Mouse Scroll. I don't know there will be any collision in other windows).

So, it would be nice to have a system solution, maybe in options.

kmatheussen commented 1 year ago

I agree. How about another tab in the preferences called "Keybindings?" There we could put option to set modifier keys to move left/right and other things.

akimaze commented 1 year ago

I agree. How about another tab in the preferences called "Keybindings?" There we could put option to set modifier keys to move left/right and other things.

I think that would be great. And there should be a button to reset to default or reset to alternative default set of hotkeys without the super (windows) key for easy selection for new users.