aboutsummaryrefslogtreecommitdiff
path: root/src/background/actions
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-03-04 18:32:24 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-03-04 18:41:23 +0900
commit90b83d7b7b99598834466c97e9c74c82cbd25cf3 (patch)
treef7faf5e1f1b757725ec49c8fdc7493ba3bd503e8 /src/background/actions
parent37410b874f89de4907ba038244318129835e8157 (diff)
hide console on <Esc> and <C-{>
Diffstat (limited to 'src/background/actions')
-rw-r--r--src/background/actions/operation.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/background/actions/operation.js b/src/background/actions/operation.js
index 1188ea2..56eb168 100644
--- a/src/background/actions/operation.js
+++ b/src/background/actions/operation.js
@@ -73,6 +73,10 @@ const exec = (operation, tab) => {
return browser.tabs.sendMessage(tab.id, {
type: messages.CONSOLE_SHOW_FIND
});
+ case operations.CANCEL:
+ return browser.tabs.sendMessage(tab.id, {
+ type: messages.CONSOLE_HIDE,
+ });
default:
return Promise.resolve();
}