hide console on <Esc> and <C-{>

This commit is contained in:
Shin'ya Ueoka 2018-03-04 18:32:24 +09:00
parent 37410b874f
commit 90b83d7b7b
6 changed files with 18 additions and 2 deletions

View file

@ -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();
}