Skip to content

Commit

Permalink
Restore Firefox extension keyboard shortcuts
Browse files Browse the repository at this point in the history
Restores Firefox extension keyboard shortcuts, which [currently don't work](raindropio/app#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)
  • Loading branch information
jdrch authored Jul 13, 2024
1 parent 4092911 commit 7e3d913
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion test/webextension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,43 @@
"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"
],
"optional_permissions": [
"tabs"
]
}
}

0 comments on commit 7e3d913

Please sign in to comment.