diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-08-27 10:12:12 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-08-27 10:12:12 +0900 |
commit | 02c0cfd97d44c8568dee6f0d11d2e45732309c67 (patch) | |
tree | 3ac86ccfaabaa86acd23a0f46821c6511223db0a /src/background/key-queue.js | |
parent | 6213f55e22f79eb8b7572a619e0fc68047c0631e (diff) |
scroll lines action
Diffstat (limited to 'src/background/key-queue.js')
-rw-r--r-- | src/background/key-queue.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/background/key-queue.js b/src/background/key-queue.js index f5f9a53..8bd3158 100644 --- a/src/background/key-queue.js +++ b/src/background/key-queue.js @@ -5,8 +5,8 @@ const DEFAULT_KEYMAP = [ { keys: [{ code: KeyboardEvent.DOM_VK_SEMICOLON, shift: true }], action: [ actions.CMD_OPEN ]}, { keys: [{ code: KeyboardEvent.DOM_VK_O }], action: [ actions.CMD_TABS_OPEN, false ]}, { keys: [{ code: KeyboardEvent.DOM_VK_O, shift: true }], action: [ actions.CMD_TABS_OPEN, true ]}, - { keys: [{ code: KeyboardEvent.DOM_VK_K }], action: [ actions.SCROLL_UP, 1 ]}, - { keys: [{ code: KeyboardEvent.DOM_VK_J }], action: [ actions.SCROLL_DOWN, 1 ]}, + { keys: [{ code: KeyboardEvent.DOM_VK_K }], action: [ actions.SCROLL_LINES, -1 ]}, + { keys: [{ code: KeyboardEvent.DOM_VK_J }], action: [ actions.SCROLL_LINES, 1 ]}, { keys: [{ code: KeyboardEvent.DOM_VK_G }, { code: KeyboardEvent.DOM_VK_G }], action: [ actions.SCROLL_TOP ]}, { keys: [{ code: KeyboardEvent.DOM_VK_G, shift: true }], action: [ actions.SCROLL_BOTTOM ]}, { keys: [{ code: KeyboardEvent.DOM_VK_D }], action: [ actions.TABS_CLOSE ]}, |