mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 19:53:48 +01:00
Fix closing the chat window with ESC, see #18134
This commit is contained in:
1 parent
ec33bcfce3
commit
4df4adb936
2 files changed
+7
-7
No files matched your search
+4
-4
@@ -844,16 +844,16 @@ bool EmuScreen::UnsyncKey(const KeyInput &key) {
|
||||
System_Notify(SystemNotification::ACTIVITY);
|
||||
|
||||
if (UI::IsFocusMovementEnabled()) {
|
||||
if (UIScreen::UnsyncKey(key)) {
|
||||
return true;
|
||||
} else if ((key.flags & KEY_DOWN) != 0 && UI::IsEscapeKey(key)) {
|
||||
bool retval = UIScreen::UnsyncKey(key);
|
||||
if ((key.flags & KEY_DOWN) != 0 && UI::IsEscapeKey(key)) {
|
||||
if (chatMenu_)
|
||||
chatMenu_->Close();
|
||||
if (chatButton_)
|
||||
chatButton_->SetVisibility(UI::V_VISIBLE);
|
||||
UI::EnableFocusMovement(false);
|
||||
return true;
|
||||
retval = true;
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
return controlMapper_.Key(key, &pauseTrigger_);
|
||||
|
||||
Reference in new issue
Block a user