Sync CapsLock and NumLock status in legacy mode.

This commit is contained in:
Asura committed 2022-07-23 08:20:39 -07:00
1 parent b3b97ee69a
commit 1caee4e306
4 files changed
+34 -26

No files matched your search

+1 -1
View File
@@ -1105,7 +1105,7 @@ impl Handler {
key_event.modifiers.push(ControlKey::CapsLock.into());
}
if self.peer_platform() != "Mac OS" {
if get_key_state(enigo::Key::NumLock) && common::valid_for_numlock(&key_event) {
if get_key_state(enigo::Key::NumLock) {
key_event.modifiers.push(ControlKey::NumLock.into());
}
}