diff --git a/swhkd/src/daemon.rs b/swhkd/src/daemon.rs index a30d927..9d80a9a 100644 --- a/swhkd/src/daemon.rs +++ b/swhkd/src/daemon.rs @@ -321,6 +321,8 @@ async fn main() -> Result<(), Box> { .all(|x| hotkey.modifiers().contains(x)) && keyboard_state.state_modifiers.len() == hotkey.modifiers().len()) && !hotkey.is_send() + && ((hotkey.is_on_release() && event.value() == 0) + || (!hotkey.is_on_release() && event.value() == 1)) }); // Don't emit event to virtual device if it's from a valid hotkey