KeyInputEvent

class Communicator.Event.KeyInputEvent()

Methods

getDate

KeyInputEvent.getDate()

Gets the Date this event occurred

Return type

Date

Returns

the event Date

getEventType

KeyInputEvent.getEventType()

gets the event type

Return type

KeyInputType

Returns

the type of key event

getHandled

KeyInputEvent.getHandled()

Gets the handled state of the event

Return type

boolean

Returns

whether the event has been handled

getKeyCode

KeyInputEvent.getKeyCode()

gets the key code

Return type

number

Returns

the key code of the event

setHandled

KeyInputEvent.setHandled(handled)

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

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

Return type

void