support zi/zo commands
This commit is contained in:
parent
1afbde6e19
commit
1f15d22643
5 changed files with 48 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue