KeyInputEvent

class Event.KeyInputEvent()

Accessors

  • viewKey

Accessors

Event.viewKey()

Get the ViewKey this event is associated with.

Return type:ViewKey

Methods

getDate

KeyInputEvent.getDate()

Gets the Date this event occurred

Returns:the event Date
Return type:Date

getEventType

KeyInputEvent.getEventType()

gets the event type

Returns:the type of key event
Return type:KeyInputType

getHandled

KeyInputEvent.getHandled()

Gets the handled state of the event

Returns:whether the event has been handled
Return type:boolean

getKeyCode

KeyInputEvent.getKeyCode()

gets the key code

Returns:the key code of the event
Return type:number

setHandled

KeyInputEvent.setHandled(handled)
Arguments:
  • handled (boolean()) – Indicates whether this event has been handled.

Sets the handled state of the event. When an event has been handled it will not propagate any further

Return type:void