From 64e4d91e13d8589c61326c6ba9a598620a602a04 Mon Sep 17 00:00:00 2001 From: thecozies <79979276+thecozies@users.noreply.github.com> Date: Thu, 1 May 2025 09:39:53 -0500 Subject: [PATCH] add focus to text input --- src/ui/elements/ui_text_input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/elements/ui_text_input.cpp b/src/ui/elements/ui_text_input.cpp index 679857f..b496728 100644 --- a/src/ui/elements/ui_text_input.cpp +++ b/src/ui/elements/ui_text_input.cpp @@ -28,7 +28,7 @@ namespace recompui { } } - TextInput::TextInput(Element *parent, bool text_visible) : Element(parent, Events(EventType::Text), "input") { + TextInput::TextInput(Element *parent, bool text_visible) : Element(parent, Events(EventType::Text, EventType::Focus), "input") { if (!text_visible) { set_attribute("type", "password"); }