Skip to content

Commit

Permalink
Merge pull request #15560 from unknownbrackets/pause-focus
Browse files Browse the repository at this point in the history
UI: Abandon focus movement on returning from pause
  • Loading branch information
hrydgard authored May 29, 2022
2 parents 21bf41e + df4017b commit 7a3013c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Dialog/PSPOskDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions UI/EmuScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 7a3013c

Please sign in to comment.