1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-30 06:06:44 +00:00

Text edit field now gets focus when the dialog is shown.

This commit is contained in:
Jan Borsodi 2010-09-15 16:12:36 +02:00
parent 1907aeb6c6
commit 5802930500

View file

@ -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