Skip to content

Commit 15235c7

Browse files
committed
Remove Esc key action in favor of jquery ui default
1 parent 7e2db50 commit 15235c7

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/botPage/view/View.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -454,24 +454,17 @@ export default class View {
454454
});
455455
$(document).keydown(e => {
456456
if (e.which === 189) {
457-
// -
457+
// Ctrl + -
458458
if (e.ctrlKey) {
459459
this.blockly.zoomOnPlusMinus(false);
460460
e.preventDefault();
461461
}
462462
} else if (e.which === 187) {
463-
// +
463+
// Ctrl + +
464464
if (e.ctrlKey) {
465465
this.blockly.zoomOnPlusMinus(true);
466466
e.preventDefault();
467467
}
468-
} else if (e.which === 27) {
469-
// Esc
470-
const exitButton = $('.panel:hover .panelExitButton');
471-
if (exitButton.length === 1) {
472-
exitButton.click();
473-
e.preventDefault();
474-
}
475468
}
476469
});
477470
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy