From 9d6a39f68acf4c6508d14a1e8f34e652534f0e6c Mon Sep 17 00:00:00 2001 From: Mr-Wiseguy Date: Sat, 26 Apr 2025 02:58:17 -0400 Subject: [PATCH] Fix up/down navigation on text input elements --- src/ui/elements/ui_text_input.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/elements/ui_text_input.cpp b/src/ui/elements/ui_text_input.cpp index 0934f8d..77ac093 100644 --- a/src/ui/elements/ui_text_input.cpp +++ b/src/ui/elements/ui_text_input.cpp @@ -29,6 +29,10 @@ namespace recompui { set_border_color(Color{ 242, 242, 242, 255 }); set_border_bottom_width(1.0f); set_padding_bottom(6.0f); + set_focusable(true); + set_nav_auto(NavDirection::Up); + set_nav_auto(NavDirection::Down); + set_tab_index_auto(); } void TextInput::set_text(std::string_view text) {