Bug #1007: Fix the console getting key focus when a reference becomes unavailable, even if the console is not visible

actorid
scrawl 11 years ago
parent 31c1f484ed
commit a9e1e89bbc

@ -406,13 +406,14 @@ namespace MWGui
setTitle("#{sConsoleTitle} (" + object.getCellRef().mRefID + ")"); setTitle("#{sConsoleTitle} (" + object.getCellRef().mRefID + ")");
mPtr = object; mPtr = object;
} }
// User clicked on an object. Restore focus to the console command line.
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mCommandLine);
} }
else else
{ {
setTitle("#{sConsoleTitle}"); setTitle("#{sConsoleTitle}");
mPtr = MWWorld::Ptr(); mPtr = MWWorld::Ptr();
} }
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mCommandLine);
} }
void Console::onReferenceUnavailable() void Console::onReferenceUnavailable()

Loading…
Cancel
Save