Skip to content

Commit

Permalink
Extended default keys with mouse
Browse files Browse the repository at this point in the history
Mouse wheel up & down and mouse button left to select
  • Loading branch information
elig0n authored Apr 11, 2020
1 parent 2981d55 commit feba181
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 feba181

Please sign in to comment.