mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-21 19:04:42 -04:00
Text edit field now gets focus when the dialog is shown.
This commit is contained in:
parent
1907aeb6c6
commit
5802930500
@ -30,6 +30,9 @@ TextInputDialog::TextInputDialog(MWWorld::Environment& environment, const std::s
|
|||||||
// Adjust back button when next is shown
|
// Adjust back button when next is shown
|
||||||
okButton->setCoord(okButton->getCoord() + MyGUI::IntCoord(-18, 0, 18, 0));
|
okButton->setCoord(okButton->getCoord() + MyGUI::IntCoord(-18, 0, 18, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make sure the edit box has focus
|
||||||
|
MyGUI::InputManager::getInstance().setKeyFocusWidget(textEdit);
|
||||||
}
|
}
|
||||||
|
|
||||||
// widget controls
|
// widget controls
|
||||||
|
Loading…
x
Reference in New Issue
Block a user