public class FocusEvent extends GuiEvent:
Focus transition emitted when a GUI widget gains or loses keyboard focus.
relatedTarget identifies the widget at the other end of the transition. It is null when focus leaves the window or no focusable replacement exists.
field.focusLost += lambda(e: FocusEvent): print(e.relatedTarget)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | relatedTargetrelatedTarget as Object |
Widget at the other end of the focus transition, or null. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | FocusEventFocusEvent(source as Object, relatedTarget as Object = null): |
Creates a focus transition payload. |