From c3e493f247f7a913885a1b188271fc2149278159 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 25 Dec 2024 07:04:49 -0800 Subject: [PATCH] config: use escaped encoding for macOS cmd+left/right Fixes #3114 I forgot that the format gets parsed as a Zig string so putting it in already parsed made `+list-keybinds` incorrect. It worked either way but this fixes the `+list-keybinds` CLI action. --- src/config/Config.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/Config.zig b/src/config/Config.zig index b89aa566d..941e794f8 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -2542,12 +2542,12 @@ pub fn default(alloc_gpa: Allocator) Allocator.Error!Config { try result.keybind.set.put( alloc, .{ .key = .{ .translated = .right }, .mods = .{ .super = true } }, - .{ .text = "\x05" }, + .{ .text = "\\x05" }, ); try result.keybind.set.put( alloc, .{ .key = .{ .translated = .left }, .mods = .{ .super = true } }, - .{ .text = "\x01" }, + .{ .text = "\\x01" }, ); try result.keybind.set.put( alloc,