hide console by <C-[>

jh-changes
Shin'ya Ueoka 7 years ago
parent 8cc7d472df
commit 57dba2d841
  1. 3
      src/console/components/console.js

@ -50,6 +50,9 @@ export default class ConsoleComponent {
} }
onKeyDown(e) { onKeyDown(e) {
if (e.keyCode === KeyboardEvent.DOM_VK_ESCAPE && e.ctrlKey) {
return this.hideCommand();
}
switch (e.keyCode) { switch (e.keyCode) {
case KeyboardEvent.DOM_VK_ESCAPE: case KeyboardEvent.DOM_VK_ESCAPE:
return this.hideCommand(); return this.hideCommand();