KeyBinding
A key binding maps a key name (e.g. "Ctrl-Enter") to a command.
Parameters
The key name for non-Mac platforms.
The key name for macOS (uses Meta instead of Ctrl for Mod-).
Windows-specific binding (falls back to key if absent).
Linux-specific binding (falls back to key if absent).
Command to run. Returns true if handled.
Shift-variant of the command.
Called for every key event matching the base key (shift insensitive).
Whether to prevent the default browser action.
Whether to stop event propagation.
Constructors
Properties
Raw key handler for keys that don't produce a Compose KeyEvent. Called with the browser's key string and modifier state. On wasmJs, Skiko doesn't generate Compose KeyEvents for some symbol keys on the canvas (/, ?, ~, etc.). This handler receives them from the document-level keydown listener.