passwords-webextension icon indicating copy to clipboard operation
passwords-webextension copied to clipboard

Support for keybinding to open extension popup

Open blacklight opened this issue 4 years ago • 3 comments

Current Status

There's no way of opening the extension's popup without grabbing the mouse and clicking on the icon.

Feature Description

Most of the browser extensions for password managers (e.g. 1Password, LastPass) have an option to open the menu upon a keybinding (e.g. Ctrl+. on 1Password). Ideally, such keybinding should be configurable, which is quite easy for Chrome/Firefox extensions through the manifest.json:

{
  "commands": {
    "open-popup": {
      "suggested_key": {
        "default": "Ctrl+."
      }
    }
  }
}

blacklight avatar Nov 25 '21 21:11 blacklight

I've just realized that this request duplicates https://github.com/marius-wieschollek/passwords-webextension/issues/130, which has been open for a while. Any plan to address this (it shouldn't be too hard to define a hook in the code and attach a command to it through the manifest) or are you open to MRs?

blacklight avatar Nov 25 '21 21:11 blacklight

"Ctrl+." does not seem to be a valid shortcut. This should be an option:

"commands": {
        "_execute_browser_action": {
            "suggested_key": {
                "default": "Alt+Shift+0"
            }
        }
    }

GrumpyMeow avatar Dec 17 '21 01:12 GrumpyMeow