From 41069cf527ed159d6c5ff89cc77867537025c9f5 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 13 Aug 2017 16:37:47 +0900 Subject: implement gg/G commands --- src/shared/actions.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/shared') diff --git a/src/shared/actions.js b/src/shared/actions.js index 2e10810..3e3cbd0 100644 --- a/src/shared/actions.js +++ b/src/shared/actions.js @@ -2,6 +2,8 @@ export const TABS_PREV = 'tabs.prev'; export const TABS_NEXT = 'tabs.next'; export const SCROLL_UP = 'scroll.up'; export const SCROLL_DOWN = 'scroll.down'; +export const SCROLL_TOP = 'scroll.top'; +export const SCROLL_BOTTOM = 'scroll.bottom'; const BACKGROUND_ACTION_SET = new Set([ TABS_PREV, @@ -10,7 +12,9 @@ const BACKGROUND_ACTION_SET = new Set([ const CONTENT_ACTION_SET = new Set([ SCROLL_UP, - SCROLL_DOWN + SCROLL_DOWN, + SCROLL_TOP, + SCROLL_BOTTOM ]); export const isBackgroundAction = (action) => { -- cgit v1.2.3