From c725b886e125e3cfcfac4819e37bd2c304aeb14b Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sun, 8 Jan 2023 15:15:09 +0100 Subject: [PATCH] Qt: Disable ESC to exit fullscreen if kb shortcuts are disabled --- rpcs3/rpcs3qt/gs_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/rpcs3qt/gs_frame.cpp b/rpcs3/rpcs3qt/gs_frame.cpp index e55a357bfd..65f801139f 100644 --- a/rpcs3/rpcs3qt/gs_frame.cpp +++ b/rpcs3/rpcs3qt/gs_frame.cpp @@ -258,7 +258,7 @@ void gs_frame::keyPressEvent(QKeyEvent *keyEvent) } case Qt::Key_Escape: { - if (visibility() == FullScreen) + if (visibility() == FullScreen && !m_disable_kb_hotkeys) { toggle_fullscreen(); return;