From 3e692ba934295e98f9c77dd1883c0b449ee61c97 Mon Sep 17 00:00:00 2001 From: Samuel Onoja Date: Thu, 24 Sep 2026 11:10:46 +0100 Subject: [PATCH] fix: match documented default bindings --- compositor/src/input.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/compositor/src/input.rs b/compositor/src/input.rs index 1bdf67f..48d5aa2 100644 --- a/compositor/src/input.rs +++ b/compositor/src/input.rs @@ -34,11 +34,8 @@ impl Ferese { return FilterResult::Intercept(()); } - let supported_modifiers = modifiers.logo - && !modifiers.alt - && !(modifiers.ctrl && modifiers.shift); let symbol = keysym.modified_sym().raw(); - let direction = if supported_modifiers { + let direction = if modifiers.logo && !modifiers.ctrl && !modifiers.alt { match symbol { keysyms::KEY_h | keysyms::KEY_H => Some(Direction::Left), keysyms::KEY_j | keysyms::KEY_J => Some(Direction::Down), @@ -54,11 +51,9 @@ impl Ferese { if state == KeyState::Pressed { data.intercepted_keys.insert(keycode); - if modifiers.ctrl && !modifiers.shift { - data.resize_direction(direction); - } else if modifiers.shift && !modifiers.ctrl { + if modifiers.shift { data.move_direction(direction); - } else if !modifiers.ctrl && !modifiers.shift { + } else { data.focus_direction(direction); } }