mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue