I suggest add a key to send current page to Kindle. The following changes made the trick for me (tested locally only):
On manifest.json add:
"commands": {
"send-to-kindle": {
"suggested_key": {
"default": "Alt+Shift+K"
},
"description": "Send to Kindle"
}
},
And at the end of background.js:
browser.commands.onCommand.addListener((command) => {
switch (command) {
case 'send-to-kindle':
send()
break
}
})
But the customization of shortcut key is only possible via Manage add-on Shortcuts on about:addons
Doesn't sound hard to implement a options page: https://github.com/mdn/webextensions-examples/tree/main/commands
I suggest add a key to send current page to Kindle. The following changes made the trick for me (tested locally only):
On
manifest.jsonadd:And at the end of
background.js:But the customization of shortcut key is only possible via Manage add-on Shortcuts on about:addons
Doesn't sound hard to implement a options page: https://github.com/mdn/webextensions-examples/tree/main/commands