Merge pull request #15560 from unknownbrackets/pause-focus

UI: Abandon focus movement on returning from pause
This commit is contained in:
Henrik Rydgård
2022-05-29 21:01:51 +02:00
committed by GitHub
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -943,7 +943,7 @@ int PSPOskDialog::Update(int animSpeed) {
// Windows: Fall back to the OSK/continue normally if we're in fullscreen.
// The dialog box doesn't work right if in fullscreen.
if (System_GetPropertyBool(SYSPROP_HAS_KEYBOARD)) {
if (g_Config.bBypassOSKWithKeyboard && !g_Config.bFullScreen)
if (g_Config.bBypassOSKWithKeyboard && !g_Config.UseFullScreen())
return NativeKeyboard();
}
#endif
+3
View File
@@ -414,6 +414,9 @@ void EmuScreen::dialogFinished(const Screen *dialog, DialogResult result) {
System_SendMessage("event", "exitgame");
quit_ = false;
}
// Returning to the PauseScreen, unless we're stepping, means we should go back to controls.
if (Core_IsActive())
UI::EnableFocusMovement(false);
RecreateViews();
}