Merge pull request #14993 from unknownbrackets/ui-chat-key

UI: Disable focus movement on game start
This commit is contained in:
Henrik Rydgård 2021-10-08 18:39:29 +02:00 committed by GitHub
commit 89a452c168
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,6 +185,10 @@ EmuScreen::EmuScreen(const Path &filename)
OnDevMenu.Handle(this, &EmuScreen::OnDevTools);
OnChatMenu.Handle(this, &EmuScreen::OnChat);
// Usually, we don't want focus movement enabled on this screen, so disable on start.
// Only if you open chat or dev tools do we want it to start working.
UI::EnableFocusMovement(false);
}
bool EmuScreen::bootAllowStorage(const Path &filename) {