KeyDefinition
A key definition is a string or an object that describes a key and a modifier. It is used for defining built-in keybindings like selectionKey
or deleteKey
.
export type KeyDefinitionObject = { key: string; modifier?: KeyModifier };
export type KeyDefinition = string | KeyDefinitionObject;