3.4 Creating custom shortcuts
Available Actions
How to setup custom shortcuts
Shortcut objects must list the sequence of keys involved, and refer to them by their name in lowercase (if you know JavaScript, that would be the event.key
value). The only exception is the four special keys (Alt, Ctrl, Meta, Shift) which must be named altKey
, ctrlKey
, metaKey
, and shiftKey
respectively.
For example, the shortcut sequence alt-p
would be described by the following object :
Shortcut objects are assigned to a specific action, inside the shortcuts
property in zoteroRoam_settings
:
The tricky part in creating shortcuts is that there is no universal list of key names - they're dependent on your keyboard hardware, your OS (Windows/Mac/Linux...), and also your browser. This can lead to some unexpected behaviors - especially on Mac, and with international keyboards.
To help make testing easier, I created a small tool that lets you press a combination of keys & returns the corresponding shortcut object. It's not perfect, but hopefully it helps you set up shortcuts that work with your computer and software. You can use it here :
Last updated