File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 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 ( ) ;
482522 } ) ;
483523
484524
525+ VE . navigation . init ( ) ;
526+
485527 VE . core . register ( ) ;
486528 if ( location . href . search ( / l i s t / ) != - 1 ) {
487529 var shift_select_ref = $ ( 'body' ) . finderSelect ( {
You can’t perform that action at this time.
0 commit comments