diff options
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/operations.ts | 7 | ||||
-rw-r--r-- | src/shared/settings/Settings.ts | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/shared/operations.ts b/src/shared/operations.ts index 3544502..1433011 100644 --- a/src/shared/operations.ts +++ b/src/shared/operations.ts @@ -56,6 +56,7 @@ export const TAB_PIN = "tabs.pin"; export const TAB_UNPIN = "tabs.unpin"; export const TAB_TOGGLE_PINNED = "tabs.pin.toggle"; export const TAB_DUPLICATE = "tabs.duplicate"; +export const TAB_TOGGLE_READER = "tabs.reader.toggle"; // Zooms export const ZOOM_IN = "zoom.in"; @@ -257,6 +258,10 @@ export interface TabDuplicateOperation { type: typeof TAB_DUPLICATE; } +export interface TabToggleReaderOperation { + type: typeof TAB_TOGGLE_READER; +} + export interface ZoomInOperation { type: typeof ZOOM_IN; } @@ -352,6 +357,7 @@ export type Operation = | TabUnpinOperation | TabTogglePinnedOperation | TabDuplicateOperation + | TabToggleReaderOperation | ZoomInOperation | ZoomOutOperation | ZoomNeutralOperation @@ -506,6 +512,7 @@ export const valueOf = (o: any): Operation => { case TAB_UNPIN: case TAB_TOGGLE_PINNED: case TAB_DUPLICATE: + case TAB_TOGGLE_READER: case ZOOM_IN: case ZOOM_OUT: case ZOOM_NEUTRAL: diff --git a/src/shared/settings/Settings.ts b/src/shared/settings/Settings.ts index 43297a3..6c4fa0a 100644 --- a/src/shared/settings/Settings.ts +++ b/src/shared/settings/Settings.ts @@ -133,6 +133,7 @@ export const DefaultSettingJSONText = `{ "gf": { "type": "page.source" }, "gh": { "type": "page.home" }, "gH": { "type": "page.home", "newTab": true }, + "gr": { "type": "tabs.reader.toggle" }, "y": { "type": "urls.yank" }, "p": { "type": "urls.paste", "newTab": false }, "P": { "type": "urls.paste", "newTab": true }, |