mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
[Client] Revert changes to key focus setting as per 56539fee4f
This commit is contained in:
parent
63f55ce762
commit
a9f1481e5c
2 changed files with 4 additions and 4 deletions
|
@ -184,7 +184,7 @@ namespace mwmp
|
||||||
{
|
{
|
||||||
editState = state;
|
editState = state;
|
||||||
mCommandLine->setVisible(editState);
|
mCommandLine->setVisible(editState);
|
||||||
MyGUI::InputManager::getInstance().setKeyFocusWidget(editState ? mCommandLine : nullptr);
|
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(editState ? mCommandLine : nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUIChat::pressedSay()
|
void GUIChat::pressedSay()
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace mwmp
|
||||||
okButton->eventMouseButtonClick += MyGUI::newDelegate(this, &TextInputDialog::onOkClicked);
|
okButton->eventMouseButtonClick += MyGUI::newDelegate(this, &TextInputDialog::onOkClicked);
|
||||||
|
|
||||||
// Make sure the edit box has focus
|
// Make sure the edit box has focus
|
||||||
MyGUI::InputManager::getInstance().setKeyFocusWidget(mTextEdit);
|
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mTextEdit);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextInputDialog::setNextButtonShow(bool shown)
|
void TextInputDialog::setNextButtonShow(bool shown)
|
||||||
|
@ -56,7 +56,7 @@ namespace mwmp
|
||||||
{
|
{
|
||||||
WindowModal::onOpen();
|
WindowModal::onOpen();
|
||||||
// Make sure the edit box has focus
|
// Make sure the edit box has focus
|
||||||
MyGUI::InputManager::getInstance().setKeyFocusWidget(mTextEdit);
|
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mTextEdit);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TextInputDialog::exit()
|
bool TextInputDialog::exit()
|
||||||
|
@ -71,7 +71,7 @@ namespace mwmp
|
||||||
if (mTextEdit->getCaption() == "")
|
if (mTextEdit->getCaption() == "")
|
||||||
{
|
{
|
||||||
//MWBase::Environment::get().getWindowManager()->messageBox ("#{sNotifyMessage37}");
|
//MWBase::Environment::get().getWindowManager()->messageBox ("#{sNotifyMessage37}");
|
||||||
MyGUI::InputManager::getInstance().setKeyFocusWidget(mTextEdit);
|
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mTextEdit);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
eventDone(this);
|
eventDone(this);
|
||||||
|
|
Loading…
Reference in a new issue