config: add super+shift+t as a default undo too to mimic browsers
parent
aeede903f5
commit
396e53244d
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue