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.
This commit is contained in:
Mitchell Hashimoto
2023-08-16 17:09:17 -07:00
parent 20ddf51d2c
commit 07d722b77e

View File

@ -999,7 +999,7 @@ pub fn keyCallback(
// Before encoding, we see if we have any keybindings for this // Before encoding, we see if we have any keybindings for this
// key. Those always intercept before any encoding tasks. // key. Those always intercept before any encoding tasks.
if (event.action == .press or event.action == .repeat) { 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: { const binding_action_: ?input.Binding.Action = action: {
var trigger: input.Binding.Trigger = .{ var trigger: input.Binding.Trigger = .{
.mods = binding_mods, .mods = binding_mods,