A KeyCodePress 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.

See also:

Constructor

new(element:Null<Element>, state:KeyCodePressEventState, keyCode:KeyCode)

Methods

Inherited Variables

Defined by KeyCodeEvent

finalkeyCode:KeyCode

The key code that corresponds to the key that triggered the event.

Defined by Event

finalelement:Null<Element>

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

privatefinalstate:Int

Inherited Methods