summaryrefslogtreecommitdiff
path: root/src/keys.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-06 14:39:55 +0100
committertcmal <me@aria.rip>2024-08-13 17:07:19 +0100
commit89b5f3f87c8022f2d32c422c3516fca2f1538d69 (patch)
tree231457b673cafbfdaea32a8f6a9d8c0aba08a7d3 /src/keys.rs
parent5359062bf58a5ff57dfa48492db57f9340ecfbee (diff)
Add tags/workspaces
Diffstat (limited to 'src/keys.rs')
-rw-r--r--src/keys.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keys.rs b/src/keys.rs
index aa84da6..33192e2 100644
--- a/src/keys.rs
+++ b/src/keys.rs
@@ -95,10 +95,10 @@ impl Keybinds {
/// Attempt to run the action for the matching keybind, if it exists.
pub fn dispatch(&self, wm: &mut WM<'_>, key: Keysym, modifiers: ModMask) {
- debug!("received {key:?}");
+ debug!("received {modifiers:?} {key:?}");
if let Some(bind) = self
.binds()
- .find(|b| b.key == key && modifiers.contains(b.modifiers))
+ .find(|b| b.key == key && modifiers == b.modifiers)
{
debug!("found action");
(bind.action)(wm);