Function: shortcutsFor()
shortcutsFor(
bindings):Shortcut[]
Defined in: src/lib/utils/shortcuts/index.ts:334
The shortcuts to match key presses against: the configurable actions' key combinations (except the hold-to-pan key, which acts while held) and the fixed ones.
Parameters
bindings
Returns
Shortcut[]
Example
shortcutsFor(defaultShortcutBindings()).find((s) => s.key === "b")?.action; // { type: "tool", tool: Tool.Brush }