From 07d722b77e7fea48e22c761d50ae70aeb2e80669 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 16 Aug 2023 17:09:17 -0700 Subject: [PATCH] bindings should not use consumed modifiers Over time, they probably should, but GTK is a bit too aggressive right now with consumed modifiers and I need to take a closer look at that. --- src/Surface.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Surface.zig b/src/Surface.zig index d2a403c8b..c16987b70 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -999,7 +999,7 @@ pub fn keyCallback( // Before encoding, we see if we have any keybindings for this // key. Those always intercept before any encoding tasks. if (event.action == .press or event.action == .repeat) { - const binding_mods = event.effectiveMods().binding(); + const binding_mods = event.mods.binding(); const binding_action_: ?input.Binding.Action = action: { var trigger: input.Binding.Trigger = .{ .mods = binding_mods,