KeyboardInputEvent Type
Constructors
| Constructor |
Description
|
Full Usage:
KeyboardInputEvent(type, keyCode, ?modifiers)
Parameters:
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
|
Full Usage:
this.keyCode
|
The character that will be sent as the keyboard event. Should only use valid Accelerator key codes. |
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. |
Full Usage:
this.type
|
The type of the event, can be rawKeyDown, keyDown, keyUp or char. |
fable-electron-docs-api