UIElement.onFocusExit

Called when focus is lost because another Element was clicked. This widget then loose the "focus" (ie. keyboard focus). This function is meant to be overriden.

class UIElement
nothrow @nogc
void
onFocusExit
()

Examples

if a widget is foldable (like a popup menu), you can us this callback to close it once the user click anywhere else.

Meta