@@ -57,6 +57,42 @@ $(document).bind('keydown', 'ctrl+f', () => {
57
57
}
58
58
} ) ;
59
59
60
+ $ ( document ) . bind ( 'keydown' , "ctrl+shift+left" , ( ) => {
61
+ const node = noteTree . getCurrentNode ( ) ;
62
+ node . navigate ( $ . ui . keyCode . LEFT , true ) ;
63
+
64
+ $ ( "#note-detail" ) . focus ( ) ;
65
+
66
+ return false ;
67
+ } ) ;
68
+
69
+ $ ( document ) . bind ( 'keydown' , "ctrl+shift+right" , ( ) => {
70
+ const node = noteTree . getCurrentNode ( ) ;
71
+ node . navigate ( $ . ui . keyCode . RIGHT , true ) ;
72
+
73
+ $ ( "#note-detail" ) . focus ( ) ;
74
+
75
+ return false ;
76
+ } ) ;
77
+
78
+ $ ( document ) . bind ( 'keydown' , "ctrl+shift+up" , ( ) => {
79
+ const node = noteTree . getCurrentNode ( ) ;
80
+ node . navigate ( $ . ui . keyCode . UP , true ) ;
81
+
82
+ $ ( "#note-detail" ) . focus ( ) ;
83
+
84
+ return false ;
85
+ } ) ;
86
+
87
+ $ ( document ) . bind ( 'keydown' , "ctrl+shift+down" , ( ) => {
88
+ const node = noteTree . getCurrentNode ( ) ;
89
+ node . navigate ( $ . ui . keyCode . DOWN , true ) ;
90
+
91
+ $ ( "#note-detail" ) . focus ( ) ;
92
+
93
+ return false ;
94
+ } ) ;
95
+
60
96
$ ( window ) . on ( 'beforeunload' , ( ) => {
61
97
// this makes sure that when user e.g. reloads the page or navigates away from the page, the note's content is saved
62
98
// this sends the request asynchronously and doesn't wait for result
0 commit comments