diff options
Diffstat (limited to 'src/background')
| -rw-r--r-- | src/background/index.js | 2 | ||||
| -rw-r--r-- | src/background/keys.js | 32 | 
2 files changed, 17 insertions, 17 deletions
| 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 }, -  '<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 }, +  '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 }, @@ -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) => { | 
