Header menu logo fable-electron-docs-api

KeyboardInputEvent Type

Constructors

Constructor Description

KeyboardInputEvent(type, keyCode, ?modifiers)

Full Usage: KeyboardInputEvent(type, keyCode, ?modifiers)

Parameters:
    type : Type - The type of the event, can be rawKeyDown, keyDown, keyUp or char.
    keyCode : string - The character that will be sent as the keyboard event. Should only use valid Accelerator key codes.
    ?modifiers : Modifiers[] - An array of modifiers of the event, can be shift, control, ctrl, alt, meta, command, cmd, iskeypad, isautorepeat, leftbuttondown, middlebuttondown, rightbuttondown, capslock, numlock, left, right.

Returns: KeyboardInputEvent
type : Type

The type of the event, can be rawKeyDown, keyDown, keyUp or char.

keyCode : string

The character that will be sent as the keyboard event. Should only use valid Accelerator key codes.

?modifiers : Modifiers[]

An array of modifiers of the event, can be shift, control, ctrl, alt, meta, command, cmd, iskeypad, isautorepeat, leftbuttondown, middlebuttondown, rightbuttondown, capslock, numlock, left, right.

Returns: KeyboardInputEvent

Instance members

Instance member Description

this.keyCode

Full Usage: this.keyCode

The character that will be sent as the keyboard event. Should only use valid Accelerator key codes.

this.modifiers

Full Usage: this.modifiers

An array of modifiers of the event, can be shift, control, ctrl, alt, meta, command, cmd, iskeypad, isautorepeat, leftbuttondown, middlebuttondown, rightbuttondown, capslock, numlock, left, right.

this.type

Full Usage: this.type

The type of the event, can be rawKeyDown, keyDown, keyUp or char.

Type something to start searching.