aboutsummaryrefslogtreecommitdiff
path: root/src/background/keys.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-09-16 23:32:19 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-09-16 23:32:19 +0900
commitc5529958d53146c8c6826673abe6431a19f1924d (patch)
tree4952c7ac1ded91d52fd6e424c229022b61b67aa3 /src/background/keys.js
parentb2cddcd69b4ae06770d66808624fc43f3dcbcb0e (diff)
parentae394e28c0cbc8710d4937238c97328afddbca0f (diff)
Merge branch 'more-redux'
Diffstat (limited to 'src/background/keys.js')
-rw-r--r--src/background/keys.js60
1 files changed, 30 insertions, 30 deletions
diff --git a/src/background/keys.js b/src/background/keys.js
index 0ce53fa..8d75aba 100644
--- a/src/background/keys.js
+++ b/src/background/keys.js
@@ -1,35 +1,35 @@
-import actions from '../actions';
+import operations from '../operations';
const defaultKeymap = {
- ':': { type: actions.CMD_OPEN },
- 'o': { type: actions.CMD_TABS_OPEN, alter: false },
- 'O': { type: actions.CMD_TABS_OPEN, alter: true },
- 'b': { type: actions.CMD_BUFFER },
- 'k': { type: actions.SCROLL_LINES, count: -1 },
- 'j': { type: actions.SCROLL_LINES, count: 1 },
- '<C-E>': { type: actions.SCROLL_LINES, count: -1 },
- '<C-Y>': { type: actions.SCROLL_LINES, count: 1 },
- '<C-U>': { type: actions.SCROLL_PAGES, count: -0.5 },
- '<C-D>': { type: actions.SCROLL_PAGES, count: 0.5 },
- '<C-B>': { type: actions.SCROLL_PAGES, count: -1 },
- '<C-F>': { type: actions.SCROLL_PAGES, count: 1 },
- 'gg': { type: actions.SCROLL_TOP },
- '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 },
- 'f': { type: actions.FOLLOW_START, newTab: false },
- 'F': { type: actions.FOLLOW_START, newTab: true },
- 'H': { type: actions.HISTORY_PREV },
- 'L': { type: actions.HISTORY_NEXT },
+ ':': { type: operations.COMMAND_OPEN },
+ 'o': { type: operations.COMMAND_TABS_OPEN, alter: false },
+ 'O': { type: operations.COMMAND_TABS_OPEN, alter: true },
+ 'b': { type: operations.COMMAND_BUFFER },
+ 'k': { type: operations.SCROLL_LINES, count: -1 },
+ 'j': { type: operations.SCROLL_LINES, count: 1 },
+ '<C-E>': { type: operations.SCROLL_LINES, count: -1 },
+ '<C-Y>': { type: operations.SCROLL_LINES, count: 1 },
+ '<C-U>': { type: operations.SCROLL_PAGES, count: -0.5 },
+ '<C-D>': { type: operations.SCROLL_PAGES, count: 0.5 },
+ '<C-B>': { type: operations.SCROLL_PAGES, count: -1 },
+ '<C-F>': { type: operations.SCROLL_PAGES, count: 1 },
+ 'gg': { type: operations.SCROLL_TOP },
+ 'G': { type: operations.SCROLL_BOTTOM },
+ '0': { type: operations.SCROLL_LEFT },
+ '$': { type: operations.SCROLL_RIGHT },
+ '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: operations.FOLLOW_START, newTab: false },
+ 'F': { type: operations.FOLLOW_START, newTab: true },
+ 'H': { type: operations.HISTORY_PREV },
+ 'L': { type: operations.HISTORY_NEXT },
}
const asKeymapChars = (keys) => {