Parsed representation of a key binding that can be matched against a KeyboardEvent. Modifier flags are strict: a modifier set to false must NOT be pressed (so ctrl+s does not also fire ctrl+shift+s).
KeyboardEvent
false
ctrl+s
ctrl+shift+s
export interface ParsedBinding { meta: boolean; ctrl: boolean; alt: boolean; shift: boolean; key: string;} Copy
export interface ParsedBinding { meta: boolean; ctrl: boolean; alt: boolean; shift: boolean; key: string;}
Parsed representation of a key binding that can be matched against a
KeyboardEvent. Modifier flags are strict: a modifier set tofalsemust NOT be pressed (soctrl+sdoes not also firectrl+shift+s).Source