All held-down keys are now released when Alt-Tab'ing out

Only applies when Raw Input is in use on Windows
This commit is contained in:
Cacodemon345
2025-02-26 11:39:04 +06:00
parent 26074e9a9a
commit 168910b72f
3 changed files with 17 additions and 0 deletions

View File

@@ -277,6 +277,8 @@ MainWindow::MainWindow(QWidget *parent)
if (mouse_capture)
emit setMouseCapture(false);
keyboard_all_up();
if (do_auto_pause && !dopause) {
auto_paused = 1;
plat_pause(1);