aboutsummaryrefslogtreecommitdiff
path: root/src/background/keys.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-09-13 21:23:55 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-09-13 21:23:55 +0900
commitb6e5153c1f67a68434ad3db7d3726f129cc14aa4 (patch)
tree0e71eac44262414d9760e1a584360536fe19564a /src/background/keys.js
parent0ae39f1b67e269216ce3d45b870e448f6dbf21d7 (diff)
move background actions to operations
Diffstat (limited to 'src/background/keys.js')
-rw-r--r--src/background/keys.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/background/keys.js b/src/background/keys.js
index 0ce53fa..72b333a 100644
--- a/src/background/keys.js
+++ b/src/background/keys.js
@@ -1,4 +1,5 @@
import actions from '../actions';
+import operations from '../operations';
const defaultKeymap = {
':': { type: actions.CMD_OPEN },
@@ -17,15 +18,15 @@ const defaultKeymap = {
'G': { type: actions.SCROLL_BOTTOM },
'0': { type: actions.SCROLL_LEFT },
'$': { type: actions.SCROLL_RIGHT },
- 'd': { type: actions.TABS_CLOSE },
- 'u': { type: actions.TABS_REOPEN },
- 'h': { type: actions.TABS_PREV, count: 1 },
- 'l': { type: actions.TABS_NEXT, count: 1 },
- 'r': { type: actions.TABS_RELOAD, cache: false },
- 'R': { type: actions.TABS_RELOAD, cache: true },
- 'zi': { type: actions.ZOOM_IN },
- 'zo': { type: actions.ZOOM_OUT },
- 'zz': { type: actions.ZOOM_NEUTRAL },
+ 'd': { type: operations.TABS_CLOSE },
+ 'u': { type: operations.TABS_REOPEN },
+ 'h': { type: operations.TABS_PREV, count: 1 },
+ 'l': { type: operations.TABS_NEXT, count: 1 },
+ 'r': { type: operations.TABS_RELOAD, cache: false },
+ 'R': { type: operations.TABS_RELOAD, cache: true },
+ 'zi': { type: operations.ZOOM_IN },
+ 'zo': { type: operations.ZOOM_OUT },
+ 'zz': { type: operations.ZOOM_NEUTRAL },
'f': { type: actions.FOLLOW_START, newTab: false },
'F': { type: actions.FOLLOW_START, newTab: true },
'H': { type: actions.HISTORY_PREV },