Skip to content

Shortcut on Firefox plugin #58

Description

@rmonico

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions