DVUI

focusedWidgetId

Id of the focused widget (if any) in the focused subwindow.

Only valid between Window.beginand Window.end.

Source

Implementation

#
pub fn focusedWidgetId() ?Id {
    const cw = currentWindow();
    const sw = cw.subwindows.focused() orelse return null;
    return sw.focused_widget_id;
}