From 58029305006f40711b8bace0689cb74a57545695 Mon Sep 17 00:00:00 2001 From: Jan Borsodi Date: Wed, 15 Sep 2010 16:12:36 +0200 Subject: [PATCH] Text edit field now gets focus when the dialog is shown. --- apps/openmw/mwgui/text_input.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/openmw/mwgui/text_input.cpp b/apps/openmw/mwgui/text_input.cpp index 463f0baf82..fa6f0078ee 100644 --- a/apps/openmw/mwgui/text_input.cpp +++ b/apps/openmw/mwgui/text_input.cpp @@ -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