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). |
---|
Methods
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 |
---|---|
upListener | (optional) function with |
pressListener | (optional) function with |