config: add super+shift+t as a default undo too to mimic browsers

pull/7535/head
Mitchell Hashimoto 2025-06-07 06:57:11 -07:00
parent aeede903f5
commit 396e53244d
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 19 additions and 11 deletions

View File

@ -4944,6 +4944,25 @@ pub const Keybinds = struct {
.{ .key = .{ .unicode = 'q' }, .mods = .{ .super = true } },
.{ .quit = {} },
);
try self.set.putFlags(
alloc,
.{ .key = .{ .unicode = 'k' }, .mods = .{ .super = true } },
.{ .clear_screen = {} },
.{ .performable = true },
);
try self.set.put(
alloc,
.{ .key = .{ .unicode = 'a' }, .mods = .{ .super = true } },
.{ .select_all = {} },
);
// Undo/redo
try self.set.putFlags(
alloc,
.{ .key = .{ .unicode = 't' }, .mods = .{ .super = true, .shift = true } },
.{ .undo = {} },
.{ .performable = true },
);
try self.set.putFlags(
alloc,
.{ .key = .{ .unicode = 'z' }, .mods = .{ .super = true } },
@ -4956,17 +4975,6 @@ pub const Keybinds = struct {
.{ .redo = {} },
.{ .performable = true },
);
try self.set.putFlags(
alloc,
.{ .key = .{ .unicode = 'k' }, .mods = .{ .super = true } },
.{ .clear_screen = {} },
.{ .performable = true },
);
try self.set.put(
alloc,
.{ .key = .{ .unicode = 'a' }, .mods = .{ .super = true } },
.{ .select_all = {} },
);
// Viewport scrolling
try self.set.put(