Mozzarella

Home

Shortkeys (Custom Keyboard Shortcuts) for Firefox

***Important:
You have to refresh already opened web pages after installing shortkeys to make it work on them, better yet - restart the browser after installing the extension.
If your shortcut does not work when an input is focused, this can be turned off in Shortcut Options -> Activation Settings -> ticking the option Active while in form fields

Current limitations based on the Firefox API (more details on github):


Shortkeys makes it easy to add custom shortcuts to your browser for the following actions:

Shortkeys allows for enabling or disabling key combos while you're currently focused on a form field, so you can have keyboard shortcuts like "r" or "shift+h" and still be able to type those values into a form without triggering the shortcut if you want. You can also blacklist or whitelist sites per-shortcut, to pick and choose which shortcuts you don't want active on which sites (this field also supports regular expressions in the following format: /regexp/). Shortkeys lets you use pretty much any key combo you want. Key combos are zero or more modifier keys (including ⇑, shift, option, ⌥, alt, ctrl, control, command, and ⌘), and one action key (letter, number, punctuation, or special key shown below), combined with + signs. Examples: "shift+r", "k", "ctrl+alt+f7", "command+pageup", etc. You can also string multiple key combos together to make key sequences (like how Gmail has "g i" to go to inbox). Examples: "g g" or "ctrl+t shift+f7". Special action keys that can be used include backspace, tab, clear, enter, return, esc, escape, space, up, down, left, right, home, end, pageup, pagedown, del, delete and f1 through f19 (make sure the F keys are specified in lowecase e.g. f1).

Permissions Required
Shortkeys requires the "Your data on all websites" permission because it's the only way to inject JavaScript code into every page, and injecting JavaScript code into every page is the only way to get Firefox to recognize custom shortcuts. If you try to register key listeners (i.e., create shortcuts) outside the context of the page, then they will be ignored by Firefox. I promise that the code that runs on the pages you visit only checks the URL against the blacklists you have set, and adds the shortcuts if they're not blacklisted. That's it. Shortkeys also requires read/write clipboard permissions so that import and export from clipboard can function. If you're still nervous, you're more than welcome to look at the source code: https://github.com/mikecrittenden/shortkeys

Install