fix build

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-04-05 14:54:23 +08:00
parent acac305441
commit d279588a64
2 changed files with 4 additions and 0 deletions

View File

@@ -1410,6 +1410,9 @@ pub fn handle_key_(evt: &KeyEvent) {
Some(LockModesHandler::new(&evt))
}
_ => {
// LockModesHandler should not be created when single meta is pressing and releasing.
// Because the drop function may insert "CapsLock Click" and "NumLock Click", which breaks single meta click.
// https://github.com/rustdesk/rustdesk/issues/3928#issuecomment-1496936687
if evt.down && !is_win_linux_meta_key(evt) {
Some(LockModesHandler::new(evt))
} else {