Skip to content

Commit

Permalink
fix: remove focus on ESC in console
Browse files Browse the repository at this point in the history
fix #3484.
  • Loading branch information
cramakri committed Jul 29, 2019
1 parent b39a344 commit 6643bc9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/console/src/widget.ts
Expand Up @@ -613,6 +613,11 @@ export class CodeConsole extends Widget {
if (event.keyCode === 13 && !editor.hasFocus()) {
event.preventDefault();
editor.focus();
} else if (event.keyCode === 27 && editor.hasFocus()) {
// Set to command mode
event.preventDefault();
event.stopPropagation();
this.node.focus();
}
}

Expand Down

0 comments on commit 6643bc9

Please sign in to comment.