Use textInput state only for TextBox

This commit is contained in:
Stepanov Igor 2025-10-11 10:02:32 +03:00
parent 726f004893
commit dfd0100d17
4 changed files with 9 additions and 3 deletions

View file

@ -108,13 +108,11 @@ bool UINode::isPressed() const {
}
void UINode::onFocus() {
gui.getInput().startTextInput();
focused = true;
focusCallbacks.notify(gui);
}
void UINode::defocus() {
gui.getInput().stopTextInput();
focused = false;
defocusCallbacks.notify(gui);
}