remove valid_for_capslock

This commit is contained in:
rustdesk
2022-01-10 01:06:31 +08:00
parent 3212290f6e
commit ae79a36f7b
3 changed files with 5 additions and 23 deletions

View File

@@ -580,11 +580,9 @@ fn handle_key_(evt: &KeyEvent) {
}
}
#[cfg(not(target_os = "macos"))]
if crate::common::valid_for_capslock(evt) {
if has_cap != en.get_key_state(Key::CapsLock) {
en.key_down(Key::CapsLock).ok();
en.key_up(Key::CapsLock);
}
if has_cap != en.get_key_state(Key::CapsLock) {
en.key_down(Key::CapsLock).ok();
en.key_up(Key::CapsLock);
}
#[cfg(windows)]
if crate::common::valid_for_numlock(evt) {