diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-08-13 16:37:47 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-08-13 16:37:47 +0900 |
commit | 41069cf527ed159d6c5ff89cc77867537025c9f5 (patch) | |
tree | 5e99b3f10e6b553b0f3b0d5afa811b6133bb9798 /src/shared | |
parent | bbc8ff515efaa39c7064307ebf30e2600c4d9a6c (diff) |
implement gg/G commands
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/actions.js | 6 |
1 files changed, 5 insertions, 1 deletions
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) => { |