implement d/u command
This commit is contained in:
parent
36680ed8fe
commit
dc860d32f5
5 changed files with 37 additions and 2 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue