From 4edb0331a1f0e80f754c34ce6686873c13506022 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Mon, 25 Sep 2017 21:22:28 +0900 Subject: clean operation definitions --- src/background/keys.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/background/keys.js') diff --git a/src/background/keys.js b/src/background/keys.js index e4a8b19..5459706 100644 --- a/src/background/keys.js +++ b/src/background/keys.js @@ -1,12 +1,12 @@ import operations from '../operations'; const defaultKeymap = { - ':': { type: operations.COMMAND_OPEN }, - 'o': { type: operations.COMMAND_TABS_OPEN, alter: false }, - 'O': { type: operations.COMMAND_TABS_OPEN, alter: true }, - 't': { type: operations.COMMAND_TABS_NEW, alter: false }, - 'T': { type: operations.COMMAND_TABS_NEW, alter: true }, - 'b': { type: operations.COMMAND_BUFFER }, + ':': { type: operations.COMMAND_SHOW }, + 'o': { type: operations.COMMAND_SHOW_OPEN, alter: false }, + 'O': { type: operations.COMMAND_SHOW_OPEN, alter: true }, + 't': { type: operations.COMMAND_SHOW_TABOPEN, alter: false }, + 'T': { type: operations.COMMAND_SHOW_TABOPEN, alter: true }, + 'b': { type: operations.COMMAND_SHOW_BUFFER }, 'k': { type: operations.SCROLL_LINES, count: -1 }, 'j': { type: operations.SCROLL_LINES, count: 1 }, '': { type: operations.SCROLL_LINES, count: -1 }, @@ -17,14 +17,14 @@ const defaultKeymap = { '': { 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 }, + '0': { type: operations.SCROLL_HOME }, + '$': { type: operations.SCROLL_END }, + 'd': { type: operations.TAB_CLOSE }, + 'u': { type: operations.TAB_REOPEN }, + 'h': { type: operations.TAB_PREV, count: 1 }, + 'l': { type: operations.TAB_NEXT, count: 1 }, + 'r': { type: operations.TAB_RELOAD, cache: false }, + 'R': { type: operations.TAB_RELOAD, cache: true }, 'zi': { type: operations.ZOOM_IN }, 'zo': { type: operations.ZOOM_OUT }, 'zz': { type: operations.ZOOM_NEUTRAL }, -- cgit v1.2.3