From a9759c3f33c191e49a4b0775d5a4c8e0086f366f Mon Sep 17 00:00:00 2001 From: Roman Melnik Date: Mon, 19 Mar 2012 21:01:00 +0200 Subject: [PATCH] Fix bug #192: Remove the focus from the console when console is closed (set current keyFocusWidget to nullptr) --- apps/openmw/mwgui/console.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/openmw/mwgui/console.cpp b/apps/openmw/mwgui/console.cpp index 3fd6e7892e..c16bbf0847 100644 --- a/apps/openmw/mwgui/console.cpp +++ b/apps/openmw/mwgui/console.cpp @@ -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)