focusWidget
Focus a widget in the given subwindow (if null, the current subwindow).
To focus a widget in a different subwindow (like from a menu), you must
have both the widget id and the subwindow id that widget is in. See
subwindowCurrentId().
If you are doing this in response to an Event, you can pass that Event's
num to change the focus of any further Events in the list.
Only valid between Window.beginand Window.end.
Parameters
Source
Implementation
pub fn focusWidget(id: ?Id, subwindow_id: ?Id, event_num: ?u16) void {
currentWindow().focusWidget(id, subwindow_id, event_num);
}