An object which holds the results of parsing a keystroke.

interface IKeystrokeParts {
    alt: boolean;
    cmd: boolean;
    ctrl: boolean;
    key: string;
    shift: boolean;
}

Properties

Properties

alt: boolean

Whether 'Alt' appears in the keystroke.

cmd: boolean

Whether 'Cmd' appears in the keystroke.

ctrl: boolean

Whether 'Ctrl' appears in the keystroke.

key: string

The primary key for the keystroke.

shift: boolean

Whether 'Shift' appears in the keystroke.