macOS: treat C-/ specially again to prevent beep

Fixes #7310
This commit is contained in:
Mitchell Hashimoto
2025-05-10 14:50:56 -07:00
parent ed1194cd75
commit c4f1c78fcf
2 changed files with 10 additions and 11 deletions

View File

@@ -149,9 +149,6 @@ pub const Mods = packed struct(Mods.Backing) {
pub fn translation(self: Mods, option_as_alt: config.OptionAsAlt) Mods {
var result = self;
// Control is never used for translation.
result.ctrl = false;
// macos-option-as-alt for darwin
if (comptime builtin.target.os.tag.isDarwin()) alt: {
// Alt has to be set only on the correct side
@@ -187,14 +184,6 @@ pub const Mods = packed struct(Mods.Backing) {
);
}
test "translation removes control" {
const testing = std.testing;
const mods: Mods = .{ .ctrl = true };
const result = mods.translation(.true);
try testing.expectEqual(Mods{}, result);
}
test "translation macos-option-as-alt" {
if (comptime !builtin.target.os.tag.isDarwin()) return error.SkipZigTest;