add focus to text input

This commit is contained in:
thecozies 2025-05-01 09:39:53 -05:00
parent b99ca1ca2a
commit 64e4d91e13

View file

@ -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) { if (!text_visible) {
set_attribute("type", "password"); set_attribute("type", "password");
} }