mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
FM HotKeys
This commit is contained in:
parent
a35fa78389
commit
4307b1f827
1 changed files with 42 additions and 0 deletions
|
@ -472,6 +472,46 @@
|
|||
}
|
||||
);
|
||||
|
||||
shortcut.add("Left", function(){
|
||||
VE.navigation.move_focus_left();
|
||||
}, {
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
}
|
||||
);
|
||||
|
||||
shortcut.add("Right", function(){
|
||||
VE.navigation.move_focus_right();
|
||||
}, {
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
}
|
||||
);
|
||||
|
||||
shortcut.add("Enter", function(){
|
||||
VE.navigation.enter_focused();
|
||||
}, {
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
}
|
||||
);
|
||||
|
||||
shortcut.add("Tab", function(){
|
||||
VE.navigation.switch_menu();
|
||||
}, {
|
||||
'type': 'keydown',
|
||||
'propagate': false,
|
||||
'disable_in_input': true,
|
||||
'target': document
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
$('.shortcuts .close').click(function(){
|
||||
$('.shortcuts').hide();
|
||||
|
@ -482,6 +522,8 @@
|
|||
});
|
||||
|
||||
|
||||
VE.navigation.init();
|
||||
|
||||
VE.core.register();
|
||||
if (location.href.search(/list/) != -1) {
|
||||
var shift_select_ref = $('body').finderSelect({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue