Key bindings map keyboard shortcuts to named actions. When the user presses
the bound key, an "action" event is dispatched with event$value set to
the action name. Bindings are shown in the footer() widget automatically.
Arguments
- key
Key combination (e.g.
"q","ctrl+s","f1").- action
Action name (used as
event$valuein the action handler).- description
Human-readable description shown in the footer.
- priority
If
TRUE, the binding fires even when a widget has focus (e.g. when typing in an Input). DefaultFALSE. Set toTRUEfor global shortcuts like quit or save.
