From 0160f8a0d9291c5d3ce9537f83dcca21c35d6851 Mon Sep 17 00:00:00 2001 From: Koray08 Date: Sat, 28 Dec 2024 10:41:52 +0200 Subject: [PATCH 1/2] Add 'command delete' default to macOS --- src/config/Config.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/config/Config.zig b/src/config/Config.zig index c6702bb742..c0b37c870d 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -2555,6 +2555,11 @@ pub fn default(alloc_gpa: Allocator) Allocator.Error!Config { .{ .key = .{ .translated = .left }, .mods = .{ .super = true } }, .{ .text = "\\x01" }, ); + try result.keybind.set.put( + alloc, + .{ .key = .{ .translated = .backspace }, .mods = .{ .super = true } }, + .{ .esc = "w" }, + ); try result.keybind.set.put( alloc, .{ .key = .{ .translated = .left }, .mods = .{ .alt = true } }, From 95ee6c1633ababd8ed9d91e03781c47bbd07bd41 Mon Sep 17 00:00:00 2001 From: Koray08 Date: Sat, 28 Dec 2024 22:35:44 +0200 Subject: [PATCH 2/2] Replace 'w' with '\x15' --- src/config/Config.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/Config.zig b/src/config/Config.zig index c0b37c870d..d85705b32a 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -2558,7 +2558,7 @@ pub fn default(alloc_gpa: Allocator) Allocator.Error!Config { try result.keybind.set.put( alloc, .{ .key = .{ .translated = .backspace }, .mods = .{ .super = true } }, - .{ .esc = "w" }, + .{ .esc = "\x15" }, ); try result.keybind.set.put( alloc,