diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-10 17:27:55 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-10 17:30:09 +0900 |
commit | 2c40d239f0962f1442f357c0697e4c8aa2eafd31 (patch) | |
tree | f39b952035dab3bde2a4b926b85da78811c03ed3 /src/shared/actions.js | |
parent | 359fdb528821844f3c2fda718b82ce229a64b29f (diff) |
background command from reducer
Diffstat (limited to 'src/shared/actions.js')
-rw-r--r-- | src/shared/actions.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/shared/actions.js b/src/shared/actions.js index 7151dd1..5163cf3 100644 --- a/src/shared/actions.js +++ b/src/shared/actions.js @@ -1,11 +1,6 @@ export const CMD_OPEN = 'cmd.open'; export const CMD_TABS_OPEN = 'cmd.tabs.open'; export const CMD_BUFFER = 'cmd.buffer'; -export const TABS_CLOSE = 'tabs.close'; -export const TABS_REOPEN = 'tabs.reopen'; -export const TABS_PREV = 'tabs.prev'; -export const TABS_NEXT = 'tabs.next'; -export const TABS_RELOAD = 'tabs.reload'; export const SCROLL_LINES = 'scroll.lines'; export const SCROLL_PAGES = 'scroll.pages'; export const SCROLL_TOP = 'scroll.top'; @@ -15,20 +10,6 @@ export const SCROLL_RIGHT= 'scroll.right'; export const FOLLOW_START = 'follow.start'; export const HISTORY_PREV = 'history.prev'; export const HISTORY_NEXT = 'history.next'; -export const ZOOM_IN = 'zoom.in'; -export const ZOOM_OUT = 'zoom.out'; -export const ZOOM_NEUTRAL = 'zoom.neutral'; - -const BACKGROUND_ACTION_SET = new Set([ - TABS_CLOSE, - TABS_REOPEN, - TABS_PREV, - TABS_NEXT, - TABS_RELOAD, - ZOOM_IN, - ZOOM_OUT, - ZOOM_NEUTRAL -]); const CONTENT_ACTION_SET = new Set([ CMD_OPEN, @@ -45,10 +26,6 @@ const CONTENT_ACTION_SET = new Set([ HISTORY_NEXT ]); -export const isBackgroundAction = (action) => { - return BACKGROUND_ACTION_SET.has(action); -}; - export const isContentAction = (action) => { return CONTENT_ACTION_SET.has(action); }; |