mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 18:40:01 +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:
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…
x
Reference in New Issue
Block a user