aboutsummaryrefslogtreecommitdiff
path: root/src/background/key-queue.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-08-26 20:08:17 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-08-26 20:08:17 +0900
commit6213f55e22f79eb8b7572a619e0fc68047c0631e (patch)
treeca4db6739528100a6dd965700fc7ffc707f22a74 /src/background/key-queue.js
parenteec79730606ab3b49529d8063c6646d6309d8084 (diff)
parentcb36fc666cb2615f911bc855bc91249d167f0dba (diff)
Merge branch 'some-features'
Diffstat (limited to 'src/background/key-queue.js')
-rw-r--r--src/background/key-queue.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/background/key-queue.js b/src/background/key-queue.js
index 5693b36..f5f9a53 100644
--- a/src/background/key-queue.js
+++ b/src/background/key-queue.js
@@ -13,8 +13,15 @@ const DEFAULT_KEYMAP = [
{ keys: [{ code: KeyboardEvent.DOM_VK_U }], action: [ actions.TABS_REOPEN]},
{ keys: [{ code: KeyboardEvent.DOM_VK_H }], action: [ actions.TABS_PREV, 1 ]},
{ keys: [{ code: KeyboardEvent.DOM_VK_L }], action: [ actions.TABS_NEXT, 1 ]},
+ { keys: [{ code: KeyboardEvent.DOM_VK_R }], action: [ actions.TABS_RELOAD, false ]},
+ { keys: [{ code: KeyboardEvent.DOM_VK_R, shift: true }], action: [ actions.TABS_RELOAD, true ]},
+ { keys: [{ code: KeyboardEvent.DOM_VK_Z }, { code: KeyboardEvent.DOM_VK_I }], action: [ actions.ZOOM_IN ]},
+ { keys: [{ code: KeyboardEvent.DOM_VK_Z }, { code: KeyboardEvent.DOM_VK_O }], action: [ actions.ZOOM_OUT ]},
+ { keys: [{ code: KeyboardEvent.DOM_VK_Z }, { code: KeyboardEvent.DOM_VK_Z }], action: [ actions.ZOOM_NEUTRAL]},
{ keys: [{ code: KeyboardEvent.DOM_VK_F }], action: [ actions.FOLLOW_START, false ]},
{ keys: [{ code: KeyboardEvent.DOM_VK_F, shift: true }], action: [ actions.FOLLOW_START, true ]},
+ { keys: [{ code: KeyboardEvent.DOM_VK_H, shift: true }], action: [ actions.HISTORY_PREV ]},
+ { keys: [{ code: KeyboardEvent.DOM_VK_L, shift: true }], action: [ actions.HISTORY_NEXT ]},
]
export default class KeyQueue {