Static methods

staticdisableSystemInterventions(behavior:BlockInterventions):Void

Disables system hotkeys (html5 only).

Parameters:

behavior

can be: Default - allow F-keys and char keys. Full - disable all keys (that browser allows). None - do not block any key. Custom(func:(code:Int)->Bool) - set custom handler for keydown event (should return true if keycode blocked).

@:value({ num : 0 })staticget(num:Int = 0):Keyboard

Get current Keyboard.

Parameters:

num

(optional) keyboard id (0 by default).

Methods

hide():Void

Hide virtual keyboard (if it exists).

@:value({ pressListener : null })notify(?downListener:(key:KeyCode) ‑> Void, ?upListener:(key:KeyCode) ‑> Void, ?pressListener:(char:String) ‑> Void):Void

Creates event handlers from passed functions.

Parameters:

downListener

(optional) function with key:KeyCode argument, fired when a key is pressed down.

upListener

(optional) function with key:KeyCode argument, fired when a key is released.

pressListener

(optional) function with char:String argument, fired when a key that produces a character value is pressed down.

remove(?downListener:(key:KeyCode) ‑> Void, ?upListener:(key:KeyCode) ‑> Void, ?pressListener:(char:String) ‑> Void):Void

Removes event handlers from the passed functions that were passed to notify function.

show():Void

Show virtual keyboard (if it exists).

Inherited Variables

Inherited Methods

Defined by Controller