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:
parent
91288fa6a1
commit
15b582243c
2 changed files with 8 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue