implement d/u command

This commit is contained in:
Shin'ya Ueoka 2017-08-16 20:26:02 +09:00
parent 36680ed8fe
commit dc860d32f5
5 changed files with 37 additions and 2 deletions

View file

@ -26,6 +26,12 @@ const keyDownHandle = (request, sender, sendResponse) => {
const doBackgroundAction = (sender, action) => {
switch(action[0]) {
case actions.TABS_CLOSE:
tabs.closeTab(sender.tab.id);
break;
case actions.TABS_REOPEN:
tabs.reopenTab();
break;
case actions.TABS_PREV:
tabs.selectPrevTab(sender.tab.index, actions[1] || 1);
break;