Header menu logo fable-electron-docs-api

Input Type

Constructors

Constructor Description

Input(type, key, code, isAutoRepeat, isComposing, shift, control, alt, meta, location, modifiers)

Full Usage: Input(type, key, code, isAutoRepeat, isComposing, shift, control, alt, meta, location, modifiers)

Parameters:
    type : 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
type : 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

this.alt

Full Usage: this.alt

Equivalent to KeyboardEvent.altKey.

this.code

Full Usage: this.code

Equivalent to KeyboardEvent.code.

this.control

Full Usage: this.control

Equivalent to KeyboardEvent.controlKey.

this.isAutoRepeat

Full Usage: this.isAutoRepeat

Equivalent to KeyboardEvent.repeat.

this.isComposing

Full Usage: this.isComposing

Equivalent to KeyboardEvent.isComposing.

this.key

Full Usage: this.key

Equivalent to KeyboardEvent.key.

this.location

Full Usage: this.location

Equivalent to KeyboardEvent.location.

this.meta

Full Usage: this.meta

Equivalent to KeyboardEvent.metaKey.

this.modifiers

Full Usage: this.modifiers

See InputEvent.modifiers.

this.shift

Full Usage: this.shift

Equivalent to KeyboardEvent.shiftKey.

this.type

Full Usage: this.type

Either keyUp or keyDown.

Type something to start searching.