Serghey Rodin vor 10 Jahren
Ursprung
Commit
4307b1f827
1 geänderte Dateien mit 42 neuen und 0 gelöschten Zeilen
  1. 42 0
      web/templates/footer.html

+ 42 - 0
web/templates/footer.html

@@ -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({