MCPcopy Create free account
hub / github.com/RevoSucks/BM64Recomp / enable_focus

Method enable_focus

src/ui/elements/ui_element.cpp:285–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285void Element::enable_focus() {
286 set_tab_index_auto();
287 set_focusable(true);
288 set_nav_auto(NavDirection::Up);
289 set_nav_auto(NavDirection::Down);
290 set_nav_auto(NavDirection::Left);
291 set_nav_auto(NavDirection::Right);
292}
293
294void Element::clear_children() {
295 if (children.empty()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected