CJ van den Berg 2025-12-17 16:48:48 -05:00 committed by GitHub
commit da8b00b568
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 1 deletions

View File

@ -116,7 +116,20 @@ fn kitty(
}
}
const all_mods = event.mods;
const all_mods = mods: {
var mods_binding = event.mods;
if (comptime builtin.target.os.tag.isDarwin()) alt: {
switch (opts.macos_option_as_alt) {
.false => {},
.true => break :alt,
.left => if (event.mods.sides.alt == .left) break :alt,
.right => if (event.mods.sides.alt == .right) break :alt,
}
mods_binding.alt = false;
}
break :mods mods_binding;
};
const effective_mods = event.effectiveMods();
const binding_mods = effective_mods.binding();