A component that can hold keyboard focus (text inputs, key-capture rows).
Focus is managed by UIFocus; while a focused component capturesKeyboard(), the host
application must suppress its own keybinds (UIFocus.typing).
Methods
onKeyDown(keyCode:Int, charCode:Int, ctrl:Bool, shift:Bool, alt:Bool):Bool
A key event routed to the focused component.
Parameters:
keyCode | the platform key code |
|---|---|
charCode | the printable character code (0 when none) |
ctrl |
|
shift |
|
alt |
|
Returns:
true when consumed (the host should not process the key)