From 7e3d913d0e8d96fbb91208f21a73a545ffa70c67 Mon Sep 17 00:00:00 2001 From: jdrch Date: Sat, 13 Jul 2024 14:44:55 -0500 Subject: [PATCH] Restore Firefox extension keyboard shortcuts Restores Firefox extension keyboard shortcuts, which [currently don't work](https://github.com/raindropio/app/issues/121). I took most of the code was taken from the[ legacy Manifest V2 extension `manifest.json`](https://github.com/raindropio/extensions/blob/master/src/config/manifest.json), except for changing `"_execute_browser_action"` to `"_execute_action"` for [Manifest V3 compatibility](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/commands#syntax) --- test/webextension/manifest.json | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/test/webextension/manifest.json b/test/webextension/manifest.json index be149ab..48df04f 100644 --- a/test/webextension/manifest.json +++ b/test/webextension/manifest.json @@ -19,8 +19,38 @@ "default": "Shift+Alt+S" }, "description": "Highlight selected text" + }, + "_execute_action": { + "suggested_key": { + "default": "Ctrl+Shift+E", + "windows": "Ctrl+Shift+E", + "mac": "Command+Shift+E", + "chromeos": "Ctrl+Shift+E", + "linux": "Ctrl+Shift+E" + } + }, + "save-page": { + "suggested_key": { + "default": "Ctrl+Shift+O", + "windows": "Ctrl+Shift+O", + "mac": "Command+Shift+O", + "chromeos": "Ctrl+Shift+O", + "linux": "Ctrl+Shift+O" + }, + "description": "__MSG_savePage__" + }, + "show-bookmarks": { + "description": "__MSG_myBookmarks__", + "suggested_key": { + "default": "Ctrl+Shift+A", + "windows": "Ctrl+Shift+A", + "mac": "Command+Shift+A", + "chromeos": "Ctrl+Shift+A", + "linux": "Ctrl+Shift+A" + } } }, + "permissions": [ "activeTab", "contextMenus" @@ -28,4 +58,4 @@ "optional_permissions": [ "tabs" ] -} \ No newline at end of file +}