mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
Use textInput state only for TextBox
This commit is contained in:
parent
726f004893
commit
dfd0100d17
4 changed files with 9 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue