1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:53:51 +00:00

Fix bug #192: Remove the focus from the console when console is closed

(set current keyFocusWidget to nullptr)
This commit is contained in:
Roman Melnik 2012-03-19 21:01:00 +02:00
parent f2a47d421b
commit a9759c3f33

View file

@ -139,6 +139,9 @@ namespace MWGui
void Console::disable()
{
setVisible(false);
// Remove keyboard focus from the console input whenever the
// console is turned off
MyGUI::InputManager::getInstance().setKeyFocusWidget(nullptr);
}
void Console::setFont(const std::string &fntName)