mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-27 23:19:02 +08:00
remove unused call
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
09ba9cddcd
commit
09f9b515f6
@ -160,14 +160,16 @@ impl LockModesHandler {
|
||||
en.key_click(enigo::Key::CapsLock);
|
||||
}
|
||||
|
||||
let event_num_enabled = Self::is_modifier_enabled(key_event, ControlKey::NumLock);
|
||||
let local_num_enabled = en.get_key_state(enigo::Key::NumLock);
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
let disable_numlock = false;
|
||||
#[cfg(target_os = "windows")]
|
||||
let disable_numlock = is_numlock_disabled(key_event);
|
||||
let num_lock_changed =
|
||||
is_numpad_key && event_num_enabled != local_num_enabled && !disable_numlock;
|
||||
let mut num_lock_changed = false;
|
||||
if is_numpad_key {
|
||||
let event_num_enabled = Self::is_modifier_enabled(key_event, ControlKey::NumLock);
|
||||
let local_num_enabled = en.get_key_state(enigo::Key::NumLock);
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
let disable_numlock = false;
|
||||
#[cfg(target_os = "windows")]
|
||||
let disable_numlock = is_numlock_disabled(key_event);
|
||||
num_lock_changed = event_num_enabled != local_num_enabled && !disable_numlock;
|
||||
}
|
||||
if num_lock_changed {
|
||||
en.key_click(enigo::Key::NumLock);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user