final class UIFocus
package smidr.input
Keyboard focus manager. Exactly one IUIFocusable holds focus; typing is the single flag
host applications check before processing their own keybinds.
Static variables
Static methods
staticclear(?ifTarget:IUIFocusable):Void
Clears focus.
Parameters:
ifTarget | when set, only clears if that component currently holds focus |
|---|
statickeyDown(keyCode:Int, charCode:Int, ctrl:Bool, shift:Bool, alt:Bool):Bool
Routes a key event to the focused component.
Parameters:
keyCode | the platform key code |
|---|---|
charCode | the printable character code (0 when none) |
ctrl |
|
shift |
|
alt |
|
Returns:
true when the focused component consumed the key
staticset(target:IUIFocusable):Void
Moves focus (notifies the old and new holders).
Parameters:
target | the new focus holder, or |
|---|