Header menu logo fable-electron-docs-api

KeyboardEvent Type

Constructors

Constructor Description

KeyboardEvent(?ctrlKey, ?metaKey, ?shiftKey, ?altKey, ?triggeredByAccelerator)

Full Usage: KeyboardEvent(?ctrlKey, ?metaKey, ?shiftKey, ?altKey, ?triggeredByAccelerator)

Parameters:
    ?ctrlKey : bool - whether the Control key was used in an accelerator to trigger the Event
    ?metaKey : bool - whether a meta key was used in an accelerator to trigger the Event
    ?shiftKey : bool - whether a Shift key was used in an accelerator to trigger the Event
    ?altKey : bool - whether an Alt key was used in an accelerator to trigger the Event
    ?triggeredByAccelerator : bool - whether an accelerator was used to trigger the event as opposed to another user gesture like mouse click

Returns: KeyboardEvent
?ctrlKey : bool

whether the Control key was used in an accelerator to trigger the Event

?metaKey : bool

whether a meta key was used in an accelerator to trigger the Event

?shiftKey : bool

whether a Shift key was used in an accelerator to trigger the Event

?altKey : bool

whether an Alt key was used in an accelerator to trigger the Event

?triggeredByAccelerator : bool

whether an accelerator was used to trigger the event as opposed to another user gesture like mouse click

Returns: KeyboardEvent

Instance members

Instance member Description

this.altKey

Full Usage: this.altKey

whether an Alt key was used in an accelerator to trigger the Event

this.ctrlKey

Full Usage: this.ctrlKey

whether the Control key was used in an accelerator to trigger the Event

this.metaKey

Full Usage: this.metaKey

whether a meta key was used in an accelerator to trigger the Event

this.shiftKey

Full Usage: this.shiftKey

whether a Shift key was used in an accelerator to trigger the Event

this.triggeredByAccelerator

Full Usage: this.triggeredByAccelerator

whether an accelerator was used to trigger the event as opposed to another user gesture like mouse click

Type something to start searching.