config: on macOS cmd+ctrl+f toggles fullscreen by default

Fixes #171
This commit is contained in:
Mitchell Hashimoto
2023-11-05 11:40:58 -08:00
parent 7cb8f1e115
commit 04ef21653f

View File

@@ -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;