File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 10
10
-->
11
11
<!-- use body tag to strip comments out on requirejs/text plugin -->
12
12
< body >
13
- < div id ="vp_fileNavigation ">
13
+ < div id ="vp_fileNavigation " class =" vp-filenavigation-base " >
14
14
< div class ='fileNavigationPage-container center-1rem-gray ' >
15
15
< div class ="fileNavigationPage-sidebar ">
16
16
<!-- Jupyter Notebook -->
Original file line number Diff line number Diff line change @@ -207,8 +207,13 @@ define([], function() {
207
207
that . keyManager . keyCheck . shiftKey = false ;
208
208
}
209
209
if ( evt . keyCode == that . keyManager . keyCode . escKey ) {
210
+ // check if there is visible file navigation : FileNavigation
211
+ if ( $ ( '.vp-filenavigation-base:visible' ) . length > 0 ) {
212
+ // close file navigation
213
+ $ ( '.vp-filenavigation-base:visible' ) . remove ( ) ;
214
+ }
210
215
// check if there is visible data selector : DataSelector
211
- if ( $ ( '.vp-dataselector-base:visible' ) . length > 0 ) {
216
+ else if ( $ ( '.vp-dataselector-base:visible' ) . length > 0 ) {
212
217
// close data selector
213
218
$ ( '.vp-dataselector-base:visible' ) . remove ( ) ;
214
219
}
You can’t perform that action at this time.
0 commit comments