aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2021-05-09 11:58:40 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2021-05-09 11:58:40 +0900
commita462f3c4d0a6c9abc152042be8cd8bb473fdfbba (patch)
treeb715fcfafd9947d8ea25cc51b80cf71e2786f5cc /src
parenta7ade501f7c85632208c74e3553305c815159d01 (diff)
Add reader-view keymaps to gr
Diffstat (limited to 'src')
-rw-r--r--src/settings/keymaps.ts1
-rw-r--r--src/shared/settings/Settings.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/settings/keymaps.ts b/src/settings/keymaps.ts
index 25c7a51..ff87cf4 100644
--- a/src/settings/keymaps.ts
+++ b/src/settings/keymaps.ts
@@ -31,6 +31,7 @@ const fields = [
['tabs.reload?{"cache":true}', "Reload with no caches"],
["tabs.pin.toggle", "Toggle pinned state"],
["tabs.duplicate", "Duplicate a tab"],
+ ["tabs.reader.toggle", "Reader view"],
],
[
['follow.start?{"newTab":false,"background":false}', "Follow a link"],
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 },