A KeyCharPress event is fired on the first frame a key is pressed and after that on a certain time interval to simulate a OS-like input behaviour. That interval can be controlled by EventHandler.KEY_REPEAT_DELAY and EventHandler.KEY_REPEAT_PERIOD.

Please note that this event is only fired by keys that represent a character due to internal limitations. For an event that also handles other keys, please refer to KeyCodePressEvent.

See also:

Constructor

new(element:Null<Element>, state:KeyCharPressEventState, keyChar:String)

Variables

finalkeyChar:String

The character of the key that triggered the event.

Methods

Inherited Variables

Defined by Event

finalelement:Null<Element>

The element that receives this event. If null, this event is not dispatched.

privatefinalstate:Int

Inherited Methods