@studiokeywi/banjo - v0.0.1
    Preparing search index...

    Interface KeyData

    Information from a KeyboardEvent that is relevant to identifying a key press/release

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

    Properties

    altKey?: boolean

    Returns a boolean value that is true if the Alt (Option or ⌥ on macOS) key was active when the key event was generated.

    code?: string

    Returns a string with the code value of the physical key represented by the event.

    ctrlKey?: boolean

    Returns a boolean value that is true if the Ctrl key was active when the key event was generated.

    key?: string

    Returns a string representing the key value of the key represented by the event.

    metaKey?: boolean

    Returns a boolean value that is true if the Meta key (on Mac keyboards, the ⌘ Command key; on Windows keyboards, the Windows key (⊞)) was active when the key event was generated.

    shiftKey?: boolean

    Returns a boolean value that is true if the Shift key was active when the key event was generated.