support zi/zo commands

This commit is contained in:
Shin'ya Ueoka 2017-08-23 21:58:58 +09:00
parent 1afbde6e19
commit 1f15d22643
5 changed files with 48 additions and 2 deletions

View file

@ -1,6 +1,7 @@
import * as actions from '../shared/actions';
import * as tabs from './tabs';
import * as commands from './commands';
import * as zooms from './zooms';
import KeyQueue from './key-queue';
const queue = new KeyQueue();
@ -38,6 +39,12 @@ const doBackgroundAction = (sender, action) => {
case actions.TABS_NEXT:
tabs.selectNextTab(sender.tab.index, actions[1] || 1);
break;
case actions.ZOOM_IN:
zooms.zoomIn();
break;
case actions.ZOOM_OUT:
zooms.zoomOut();
break;
}
}