fix: ignore modifiers on all modifier keys

This allows combining of modifier key event keybindings without having
to bind all modifier combinations. ie. with this we can use fast_scroll
and jump_mode at the same time by holding both modifiers down.
This commit is contained in:
CJ van den Berg 2026-01-14 11:03:46 +01:00
parent 91288fa6a1
commit 15b582243c
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 8 additions and 4 deletions

View file

@ -717,6 +717,9 @@ const BindingSet = struct {
const mods = switch (key_event.key) {
input.key.left_control, input.key.right_control => 0,
input.key.left_alt, input.key.right_alt => 0,
input.key.left_shift, input.key.right_shift => 0,
input.key.left_super, input.key.right_super => 0,
input.key.iso_level_3_shift, input.key.iso_level_5_shift => 0,
else => switch (mode_flag) {
.ignore_alt_text_modifiers => if (std.mem.eql(u8, text, codepoint)) key_event.modifiers else 0,
.normal => key_event.modifiers,