Hotkeys
Initiate mod runs with keyboard shortcuts
PixieBrix lets you trigger mods using keyboard shortcuts, known as hotkeys. This is useful for power users who want quick access to mods without clicking buttons or menus
How to Set Up a Hotkey
Add a Trigger Brick Use the Trigger starter brick and set the trigger event to Page Load.
Add the Add Hotkey brick In the Brick Action Pipeline, click the ➕ button and add the Add Hotkey brick.
Configure the Hotkey Settings In the Add Hotkey brick:
Title: Human friendly text describing the action.
Key Name: Type the key combination you want to use (e.g.
ctrl+shift+d
,alt+h
,⌘+j
, etc.). Read more about available keys.
Add Bricks to the Action Pipeline After the trigger, add the bricks that should run when the hotkey is pressed. This can be anything—showing a sidebar, extracting info from a page, fetching info from an API, etc.
Best Practices
Avoid Conflicts: Don’t use common browser/system shortcuts (like
ctrl+s
,cmd+r
,alt+tab
) to avoid interrupting standard behavior.Use Modifier Keys: Hotkeys with
ctrl
,alt
,shift
, or⌘
are less likely to conflict and easier to remember.Communicate Clearly: If you're sharing your mod, display the hotkey in the UI or a tooltip so users know it exists. This often works nicely as the title for Floating Actions.
Last updated
Was this helpful?