Skip to content

Commit 4307b1f

Browse files
committed
FM HotKeys
1 parent a35fa78 commit 4307b1f

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

web/templates/footer.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,46 @@
472472
}
473473
);
474474

475+
shortcut.add("Left", function(){
476+
VE.navigation.move_focus_left();
477+
}, {
478+
'type': 'keydown',
479+
'propagate': false,
480+
'disable_in_input': true,
481+
'target': document
482+
}
483+
);
484+
485+
shortcut.add("Right", function(){
486+
VE.navigation.move_focus_right();
487+
}, {
488+
'type': 'keydown',
489+
'propagate': false,
490+
'disable_in_input': true,
491+
'target': document
492+
}
493+
);
494+
495+
shortcut.add("Enter", function(){
496+
VE.navigation.enter_focused();
497+
}, {
498+
'type': 'keydown',
499+
'propagate': false,
500+
'disable_in_input': true,
501+
'target': document
502+
}
503+
);
504+
505+
shortcut.add("Tab", function(){
506+
VE.navigation.switch_menu();
507+
}, {
508+
'type': 'keydown',
509+
'propagate': false,
510+
'disable_in_input': true,
511+
'target': document
512+
}
513+
);
514+
475515

476516
$('.shortcuts .close').click(function(){
477517
$('.shortcuts').hide();
@@ -482,6 +522,8 @@
482522
});
483523

484524

525+
VE.navigation.init();
526+
485527
VE.core.register();
486528
if (location.href.search(/list/) != -1) {
487529
var shift_select_ref = $('body').finderSelect({

0 commit comments

Comments
 (0)