From a61f37ad61da8766bf74d5a8b26e53390cb5b6c9 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Wed, 13 Sep 2017 21:55:09 +0900 Subject: content operations --- src/background/index.js | 2 +- src/background/keys.js | 32 ++++++++++++++++---------------- 2 files changed, 17 insertions(+), 17 deletions(-) (limited to 'src/background') diff --git a/src/background/index.js b/src/background/index.js index ab99d39..0c3adce 100644 --- a/src/background/index.js +++ b/src/background/index.js @@ -6,7 +6,7 @@ import commandReducer from '../reducers/command'; import inputReducers from '../reducers/input'; import * as store from '../store' -const emptyReducer = (state, action) => state; +const emptyReducer = (state) => state; const emptyStore = store.createStore(emptyReducer, (e) => { console.error('Vim-Vixen:', e); }); diff --git a/src/background/keys.js b/src/background/keys.js index 72b333a..0f73bf0 100644 --- a/src/background/keys.js +++ b/src/background/keys.js @@ -6,18 +6,18 @@ const defaultKeymap = { '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 }, - '': { type: actions.SCROLL_LINES, count: -1 }, - '': { type: actions.SCROLL_LINES, count: 1 }, - '': { type: actions.SCROLL_PAGES, count: -0.5 }, - '': { type: actions.SCROLL_PAGES, count: 0.5 }, - '': { type: actions.SCROLL_PAGES, count: -1 }, - '': { 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 }, + 'k': { type: operations.SCROLL_LINES, count: -1 }, + 'j': { type: operations.SCROLL_LINES, count: 1 }, + '': { type: operations.SCROLL_LINES, count: -1 }, + '': { type: operations.SCROLL_LINES, count: 1 }, + '': { type: operations.SCROLL_PAGES, count: -0.5 }, + '': { type: operations.SCROLL_PAGES, count: 0.5 }, + '': { type: operations.SCROLL_PAGES, count: -1 }, + '': { 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 }, @@ -27,10 +27,10 @@ const defaultKeymap = { '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 }, - 'L': { type: actions.HISTORY_NEXT }, + '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) => { -- cgit v1.2.3