input fields starting to work

This commit is contained in:
Michael Freno
2025-11-07 11:42:09 -05:00
parent 666923a9c8
commit d49a31774a
2 changed files with 187 additions and 48 deletions

View File

@@ -469,8 +469,11 @@ end
--- Forward text input to focused element
---@param text string
function Gui.textinput(text)
print("[Gui.textinput] Received text:", text, "Focused element:", Gui._focusedElement)
if Gui._focusedElement then
Gui._focusedElement:textinput(text)
else
print("[Gui.textinput] No focused element!")
end
end