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

(set current keyFocusWidget to nullptr)
actorid
Roman Melnik 13 years ago
parent f2a47d421b
commit a9759c3f33

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

Loading…
Cancel
Save