From 93a7caa1018d9eabe52df3e26590c3fc954e9069 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Fri, 30 Jul 2021 19:49:03 +0200 Subject: [PATCH] fix(detect): fix incorrect modifier sync on Wayland --- espanso-detect/src/evdev/device.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/espanso-detect/src/evdev/device.rs b/espanso-detect/src/evdev/device.rs index 18a09ce..f71c1dc 100644 --- a/espanso-detect/src/evdev/device.rs +++ b/espanso-detect/src/evdev/device.rs @@ -211,12 +211,14 @@ impl Device { } if modifiers_state.num_lock { self.update_key(*modifiers_map.get("num_lock").expect("unable to find modifiers key in map"), true); + self.update_key(*modifiers_map.get("num_lock").expect("unable to find modifiers key in map"), false); } if modifiers_state.shift { self.update_key(*modifiers_map.get("shift").expect("unable to find modifiers key in map"), true); } if modifiers_state.caps_lock { self.update_key(*modifiers_map.get("caps_lock").expect("unable to find modifiers key in map"), true); + self.update_key(*modifiers_map.get("caps_lock").expect("unable to find modifiers key in map"), false); } } }