Skip to content

Commit

Permalink
Extended default keys with mouse and vim navigation
Browse files Browse the repository at this point in the history
Mouse wheel up & down to scroll list one by one and left mouse button to select.
Keyboard 'j' & 'k' for up one and down one.
  • Loading branch information
elig0n committed Apr 15, 2020
1 parent 2981d55 commit d491f93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/modules.js/SelectionMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ var SelectionMenu = function(settings)
settings.autoCloseDelay >= 0 ? settings.autoCloseDelay : 5; // 0 = Off.
this.autoCloseActiveAt = 0;
this.keyBindings = { // Default keybindings.
'Menu-Up':{repeatable:true, keys:['up']},
'Menu-Down':{repeatable:true, keys:['down']},
'Menu-Up':{repeatable:true, keys:['up','WHEEL_UP', 'k'] },
'Menu-Down':{repeatable:true, keys:['down', 'WHEEL_DOWN', 'j' ]},
'Menu-Up-Fast':{repeatable:true, keys:['shift+up']},
'Menu-Down-Fast':{repeatable:true, keys:['shift+down']},
'Menu-Left':{repeatable:true, keys:['left']},
'Menu-Right':{repeatable:false, keys:['right']},
'Menu-Open':{repeatable:false, keys:['enter']},
'Menu-Open':{repeatable:false, keys:['enter', 'MBTN_LEFT']},
'Menu-Undo':{repeatable:false, keys:['bs']},
'Menu-Help':{repeatable:false, keys:['h']},
'Menu-Close':{repeatable:false, keys:['esc']}
Expand Down

0 comments on commit d491f93

Please sign in to comment.