mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
config: close_tab on macOS should be cmd+opt+w to match iTerm2
This commit is contained in:
@ -2660,6 +2660,11 @@ pub fn default(alloc_gpa: Allocator) Allocator.Error!Config {
|
|||||||
.{ .key = .{ .translated = .w }, .mods = .{ .super = true } },
|
.{ .key = .{ .translated = .w }, .mods = .{ .super = true } },
|
||||||
.{ .close_surface = {} },
|
.{ .close_surface = {} },
|
||||||
);
|
);
|
||||||
|
try result.keybind.set.put(
|
||||||
|
alloc,
|
||||||
|
.{ .key = .{ .translated = .w }, .mods = .{ .super = true, .alt = true } },
|
||||||
|
.{ .close_tab = {} },
|
||||||
|
);
|
||||||
try result.keybind.set.put(
|
try result.keybind.set.put(
|
||||||
alloc,
|
alloc,
|
||||||
.{ .key = .{ .translated = .w }, .mods = .{ .super = true, .shift = true } },
|
.{ .key = .{ .translated = .w }, .mods = .{ .super = true, .shift = true } },
|
||||||
@ -2675,11 +2680,6 @@ pub fn default(alloc_gpa: Allocator) Allocator.Error!Config {
|
|||||||
.{ .key = .{ .translated = .t }, .mods = .{ .super = true } },
|
.{ .key = .{ .translated = .t }, .mods = .{ .super = true } },
|
||||||
.{ .new_tab = {} },
|
.{ .new_tab = {} },
|
||||||
);
|
);
|
||||||
try result.keybind.set.put(
|
|
||||||
alloc,
|
|
||||||
.{ .key = .{ .translated = .w }, .mods = .{ .super = true } },
|
|
||||||
.{ .close_tab = {} },
|
|
||||||
);
|
|
||||||
try result.keybind.set.put(
|
try result.keybind.set.put(
|
||||||
alloc,
|
alloc,
|
||||||
.{ .key = .{ .translated = .left_bracket }, .mods = .{ .super = true, .shift = true } },
|
.{ .key = .{ .translated = .left_bracket }, .mods = .{ .super = true, .shift = true } },
|
||||||
|
Reference in New Issue
Block a user