3
3 Comments

Addon Shortcuts

I bet you knew that there is an API that allows your addon to listen to user command input. If you did not, here is the handy chrome.commands API that you may utilize to make your user's life simpler: https://developer.chrome.com/apps/commands

But did you know that Chrome has its own, separate extension shortcuts? I bet you didn't, here try this: chrome://extensions/shortcuts.

Nifty, huh? Let your users know and use commands API to provide an initial shortcut.

Do you have a neat trick you use? Let us know.

on July 18, 2020
  1. 2

    I just came here to say I'm digging this slogan:

    There are literally dozens of us ™
    
  2. 2

    Very interesting. So it seems that when you define a shortcut through Chrome, it loads the content script on the current page without any extra code involved.
    Even further, if you have set it to something like ctrl+c, it will override the default copy command and load your content script