Input Type
Constructors
| Constructor |
Description
|
Full Usage:
Input(type, key, code, isAutoRepeat, isComposing, shift, control, alt, meta, location, modifiers)
Parameters:
string
-
Either keyUp or keyDown.
key : string
-
Equivalent to KeyboardEvent.key.
code : string
-
Equivalent to KeyboardEvent.code.
isAutoRepeat : bool
-
Equivalent to KeyboardEvent.repeat.
isComposing : bool
-
Equivalent to KeyboardEvent.isComposing.
shift : bool
-
Equivalent to KeyboardEvent.shiftKey.
control : bool
-
Equivalent to KeyboardEvent.controlKey.
alt : bool
-
Equivalent to KeyboardEvent.altKey.
meta : bool
-
Equivalent to KeyboardEvent.metaKey.
location : float
-
Equivalent to KeyboardEvent.location.
modifiers : string[]
-
See InputEvent.modifiers.
Returns: Input
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.alt
|
Equivalent to KeyboardEvent.altKey. |
Full Usage:
this.code
|
Equivalent to KeyboardEvent.code. |
Full Usage:
this.control
|
Equivalent to KeyboardEvent.controlKey. |
Full Usage:
this.isAutoRepeat
|
Equivalent to KeyboardEvent.repeat. |
Full Usage:
this.isComposing
|
Equivalent to KeyboardEvent.isComposing. |
Full Usage:
this.key
|
Equivalent to KeyboardEvent.key. |
Full Usage:
this.location
|
Equivalent to KeyboardEvent.location. |
Full Usage:
this.meta
|
Equivalent to KeyboardEvent.metaKey. |
Full Usage:
this.modifiers
|
See InputEvent.modifiers. |
Full Usage:
this.shift
|
Equivalent to KeyboardEvent.shiftKey. |
Full Usage:
this.type
|
Either keyUp or keyDown. |
fable-electron-docs-api