force focus to text input dialogs
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
46951f73d8
commit
aac3edc1e2
1 changed files with 4 additions and 0 deletions
|
@ -220,6 +220,10 @@ struct AsyncTextInput : OpaqueWidget
|
|||
}
|
||||
TextField::onSelectKey(e);
|
||||
}
|
||||
void step() override {
|
||||
APP->event->setSelectedWidget(this);
|
||||
TextField::step();
|
||||
}
|
||||
};
|
||||
AsyncTextField* const textField = new AsyncTextField;
|
||||
textField->box.size.x = contentLayout->box.size.x - (label != nullptr ? label->box.size.x + margin : 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue