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"); }