A platform-aware key binding. Either a single string shared across platforms, or an object with separate mac / other bindings.
mac
other
Supported tokens (case-insensitive, joined by +):
+
mod
meta
cmd
command
ctrl
control
alt
option
shift
r
s
?
enter
escape
export type KeyBinding = string | { mac: string; other: string }; Copy
export type KeyBinding = string | { mac: string; other: string };
A platform-aware key binding. Either a single string shared across platforms, or an object with separate
mac/otherbindings.Supported tokens (case-insensitive, joined by
+):mod- meta (⌘) on macOS, ctrl on Windows/Linuxmeta/cmd/command- meta keyctrl/control- control keyalt/option- alt keyshift- shift keyr,s,?,enter,escape, ...)