From 509458060639e8e73bd908e9d0d5f6d1f420b6cd Mon Sep 17 00:00:00 2001 From: barrelltitor Date: Sat, 8 Aug 2026 18:37:52 +0300 Subject: [PATCH] fix: from windows side send a key up if it was down before --- src/lib/platform/MSWindowsScreen.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/platform/MSWindowsScreen.cpp b/src/lib/platform/MSWindowsScreen.cpp index 8a58daa6d..486898750 100644 --- a/src/lib/platform/MSWindowsScreen.cpp +++ b/src/lib/platform/MSWindowsScreen.cpp @@ -1087,7 +1087,9 @@ bool MSWindowsScreen::onKey(WPARAM wParam, LPARAM lParam) } // stop sending modifier keys over and over again - if (isModifierRepeat(oldState, state, wParam)) { + // but allow up to be sent if the previous state was down + // to prevent stuck modifier keys on the client + if (down && wasDown && isModifierRepeat(oldState, state, wParam)) { return true; }