Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit36f0e8e

Browse files
author
minjk-bl
committed
Add esc shortcut to FileNavigation
1 parentd8cfbf2 commit36f0e8e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

‎visualpython/html/component/fileNavigation.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
-->
1111
<!-- use body tag to strip comments out on requirejs/text plugin -->
1212
<body>
13-
<divid="vp_fileNavigation">
13+
<divid="vp_fileNavigation"class="vp-filenavigation-base">
1414
<divclass='fileNavigationPage-container center-1rem-gray'>
1515
<divclass="fileNavigationPage-sidebar">
1616
<!-- Jupyter Notebook -->

‎visualpython/js/com/com_Event.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,13 @@ define([], function() {
207207
that.keyManager.keyCheck.shiftKey=false;
208208
}
209209
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+
}
210215
// check if there is visible data selector : DataSelector
211-
if($('.vp-dataselector-base:visible').length>0){
216+
elseif($('.vp-dataselector-base:visible').length>0){
212217
// close data selector
213218
$('.vp-dataselector-base:visible').remove();
214219
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp