From 67ca4997e22cd88e349ecffd2cd388431dcc8de3 Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Sun, 25 Feb 2024 14:25:50 +0100 Subject: Release all keyboard keys on focus loss (fixes #1987) --- src/frontend/qt_sdl/Input.cpp | 5 +++++ src/frontend/qt_sdl/Input.h | 1 + src/frontend/qt_sdl/Window.cpp | 1 + 3 files changed, 7 insertions(+) diff --git a/src/frontend/qt_sdl/Input.cpp b/src/frontend/qt_sdl/Input.cpp index c429cd3..27c42e9 100644 --- a/src/frontend/qt_sdl/Input.cpp +++ b/src/frontend/qt_sdl/Input.cpp @@ -128,6 +128,11 @@ void KeyRelease(QKeyEvent* event) KeyHotkeyMask &= ~(1<emuIsRunning()) emuThread->emuPause(); } -- cgit v1.2.3