[fix] prevent remote keyboard keys from getting stuck

This commit is contained in:
dijunkun
2026-06-15 17:28:34 +08:00
parent 1c1a33fdce
commit fbde3f6a47
6 changed files with 434 additions and 56 deletions
+6
View File
@@ -1192,10 +1192,16 @@ void Render::UpdateInteractions() {
keyboard_capturer_is_started_ = true;
}
}
if (keyboard_capturer_is_started_) {
SendKeyboardHeartbeat(false);
}
} else if (keyboard_capturer_is_started_) {
ForceReleasePressedKeys();
StopKeyboardCapturer();
keyboard_capturer_is_started_ = false;
}
CheckRemoteKeyboardTimeouts();
}
int Render::CreateMainWindow() {