mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 09:53:50 +00:00
Bug #1007: Fix the console getting key focus when a reference becomes unavailable, even if the console is not visible
This commit is contained in:
parent
31c1f484ed
commit
a9e1e89bbc
1 changed files with 2 additions and 1 deletions
|
@ -406,13 +406,14 @@ namespace MWGui
|
|||
setTitle("#{sConsoleTitle} (" + object.getCellRef().mRefID + ")");
|
||||
mPtr = object;
|
||||
}
|
||||
// User clicked on an object. Restore focus to the console command line.
|
||||
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mCommandLine);
|
||||
}
|
||||
else
|
||||
{
|
||||
setTitle("#{sConsoleTitle}");
|
||||
mPtr = MWWorld::Ptr();
|
||||
}
|
||||
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mCommandLine);
|
||||
}
|
||||
|
||||
void Console::onReferenceUnavailable()
|
||||
|
|
Loading…
Reference in a new issue