aboutsummaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-02-26 21:40:51 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-02-26 21:40:51 +0900
commit57dba2d841e088ee1a0921f36b30a081d02d041c (patch)
tree3be2c9e227a5e385f048f9a7b88530f5e47e82f6 /src/console
parent8cc7d472dff5882e4379869345667dd4ba53ca45 (diff)
hide console by <C-[>
Diffstat (limited to 'src/console')
-rw-r--r--src/console/components/console.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/console/components/console.js b/src/console/components/console.js
index 7c23dab..a9ae4ed 100644
--- a/src/console/components/console.js
+++ b/src/console/components/console.js
@@ -50,6 +50,9 @@ export default class ConsoleComponent {
}
onKeyDown(e) {
+ if (e.keyCode === KeyboardEvent.DOM_VK_ESCAPE && e.ctrlKey) {
+ return this.hideCommand();
+ }
switch (e.keyCode) {
case KeyboardEvent.DOM_VK_ESCAPE:
return this.hideCommand();