implement gg/G commands
This commit is contained in:
parent
bbc8ff515e
commit
41069cf527
5 changed files with 38 additions and 15 deletions
|
@ -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) => {
|
||||
|
|
Reference in a new issue