From 04ef21653fc95fd82a992dfc4bfaea11130566f8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 5 Nov 2023 11:40:58 -0800 Subject: [PATCH] config: on macOS cmd+ctrl+f toggles fullscreen by default Fixes #171 --- src/config/Config.zig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/config/Config.zig b/src/config/Config.zig index 0e368c390..a091191d4 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -963,6 +963,13 @@ pub fn default(alloc_gpa: Allocator) Allocator.Error!Config { .{ .key = .i, .mods = .{ .alt = true, .super = true } }, .{ .inspector = .toggle }, ); + + // Alternate keybind, common to Mac programs + try result.keybind.set.put( + alloc, + .{ .key = .f, .mods = .{ .super = true, .ctrl = true } }, + .{ .toggle_fullscreen = {} }, + ); } return result;