fix: osx, reset modifiers' state after locking screen (#11806)

https://github.com/rustdesk/rustdesk/issues/11802

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2025-05-19 21:02:07 +08:00
committed by GitHub
parent 118552ad0e
commit 6144a1c97e
2 changed files with 32 additions and 15 deletions

View File

@@ -1205,7 +1205,7 @@ pub fn handle_key(evt: &KeyEvent) {
// If we don't sleep, the key press/release events may not take effect.
//
// For example, the controlled side osx `12.7.6` or `15.1.1`
// If we input characters quickly and continuously, and press or release "Shift" for a short period of time,
// If we input characters quickly and continuously, and press or release "Shift" for a short period of time,
// it is possible that after releasing "Shift", the controlled side will still print uppercase characters.
// Though it is not very easy to reproduce.
key_sleep();