KeyInputEvent

class Communicator.Event.KeyInputEvent()

Methods

getDate()

getEventType()

getHandled()

getKeyCode()

setHandled()


Methods

getDate

Communicator.Event.KeyInputEvent.getDate()

Gets the Date this event occurred

Return type

Date

Returns

the event Date

getEventType

Communicator.Event.KeyInputEvent.getEventType()

gets the event type

Return type

Communicator.KeyInputType

Returns

the type of key event

getHandled

Communicator.Event.KeyInputEvent.getHandled()

Gets the handled state of the event

Return type

boolean

Returns

whether the event has been handled

getKeyCode

Communicator.Event.KeyInputEvent.getKeyCode()

gets the key code

Return type

number

Returns

the key code of the event

setHandled

Communicator.Event.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