Interface KeyUpEvent

Represents a key release or auto-repeated key releae event.

Use keyUpEventFromHTMLEvent where possible rather than constructing directly (required properties may change between minor releases).

interface KeyUpEvent {
    altKey: undefined | boolean;
    code: string;
    ctrlKey: undefined | boolean;
    key: string;
    kind: KeyUpEvent;
    shiftKey: undefined | boolean;
}

Hierarchy

  • BaseKeyEvent
    • KeyUpEvent

Properties

altKey: undefined | boolean

If falsey, the alt key is not pressed.

code: string
ctrlKey: undefined | boolean

If ctrlKey is undefined, that is equivalent to ctrlKey = false.

key: string

key, as given by an HTML KeyboardEvent

shiftKey: undefined | boolean

If falsey, the shift key is not pressed.

Generated using TypeDoc

OpenSource licenses