Fix #5335: document about:keyboard for binding to reserved keys

This commit is contained in:
Oliver Blanthorn 2026-07-04 11:44:47 +02:00
parent 7c84a9a520
commit 006540ba49
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -4409,6 +4409,8 @@ export function comclear(name: string) {
You can bind to modifiers and special keys by enclosing them with angle brackets, for example `bind <C-\>z fullscreen`, `unbind <F1>` (a favourite of people who use TreeStyleTabs :) ), or `bind <Backspace> forward`.
Firefox reserves some keybinds for its own use such as `<C-n>`. If you want to bind to one of these, you need to go to `about:keyboard` and unbind them there before Tridactyl can access them.
Modifiers are truncated to a single character, so Ctrl -> C, Alt -> A, and Shift -> S. Shift is a bit special as it is only required if Shift does not change the key inputted, e.g. `<S-ArrowDown>` is OK, but `<S-a>` should just be `A`.
You can view all special key names here: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values