From dc6d93c1da28ed17fe1bc5be07bdfab30a40dd66 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 21 Oct 2017 19:40:22 +0900 Subject: enable/disable addon by keys --- src/shared/operations.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/shared') diff --git a/src/shared/operations.js b/src/shared/operations.js index 0d2a381..d5c2985 100644 --- a/src/shared/operations.js +++ b/src/shared/operations.js @@ -1,4 +1,9 @@ export default { + // Addons + ADDON_ENABLE: 'addon.enable', + ADDON_DISABLE: 'addon.disable', + ADDON_TOGGLE_ENABLED: 'addon.toggle.enabled', + // Command COMMAND_SHOW: 'command.show', COMMAND_SHOW_OPEN: 'command.show.open', -- cgit v1.2.3 From 6ad143d294df0a0cc2dfb775ecab9f8b12ee7be5 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 21 Oct 2017 19:41:55 +0900 Subject: change default keymap --- README.md | 1 + src/shared/default-settings.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/shared') diff --git a/README.md b/README.md index 066a706..8514e0c 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ The default mapping are shown in the following. - zi, zo: zoom-in/zoom-out - zz: Set default zoom level - y: copy URL in current tab +- Shift+Esc: enable of disable the add-on in current tab. ### Console commands diff --git a/src/shared/default-settings.js b/src/shared/default-settings.js index d280185..60e7876 100644 --- a/src/shared/default-settings.js +++ b/src/shared/default-settings.js @@ -41,7 +41,8 @@ export default { "]]": { "type": "navigate.link.next" }, "gu": { "type": "navigate.parent" }, "gU": { "type": "navigate.root" }, - "y": { "type": "urls.yank" } + "y": { "type": "urls.yank" }, + "": { "type": "addon.toggle.enabled" } }, "search": { "default": "google", -- cgit v1.2.3