FocusEvent
classin packageklyn.gui.events
public class FocusEvent extends GuiEvent:
└ FocusEvent

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)
Properties
Modifier and Type Member Description
public readonly property relatedTarget
relatedTarget as Object
Widget at the other end of the focus transition, or null.
Inherited Properties
propertyInherited Properties from Event: source, timestamp
Constructors
Modifier and Type Member Description
public FocusEvent
FocusEvent(source as Object, relatedTarget as Object = null):
Creates a focus transition payload.