forked from mirror/openmw-tes3mp
Text edit field now gets focus when the dialog is shown.
This commit is contained in:
parent
1907aeb6c6
commit
5802930500
1 changed files with 3 additions and 0 deletions
|
@ -30,6 +30,9 @@ TextInputDialog::TextInputDialog(MWWorld::Environment& environment, const std::s
|
|||
// Adjust back button when next is shown
|
||||
okButton->setCoord(okButton->getCoord() + MyGUI::IntCoord(-18, 0, 18, 0));
|
||||
}
|
||||
|
||||
// Make sure the edit box has focus
|
||||
MyGUI::InputManager::getInstance().setKeyFocusWidget(textEdit);
|
||||
}
|
||||
|
||||
// widget controls
|
||||
|
|
Loading…
Reference in a new issue