Keyboard event fields a shortcut is matched against.

interface ShortcutEvent {
    altKey?: boolean;
    code?: string;
    ctrlKey?: boolean;
    key: string;
    metaKey?: boolean;
    shiftKey?: boolean;
}

Properties

altKey?: boolean
code?: string

The physical key (KeyT): under Alt it names the letter when key is not one, as macOS Option types a symbol. Since 2.5.10.

ctrlKey?: boolean
key: string
metaKey?: boolean
shiftKey?: boolean