add default keybinding for ctrl-shift-plus

pull/9688/head
David Moberg 2025-11-24 21:33:02 +01:00
parent 8278718c57
commit c91503206d
1 changed files with 7 additions and 0 deletions

View File

@ -5811,6 +5811,13 @@ pub const Keybinds = struct {
.{ .key = .{ .physical = .equal }, .mods = inputpkg.ctrlOrSuper(.{}) },
.{ .increase_font_size = 1 },
);
// This key-binding make the intuitive keybinding work for layouts that
// achieves plus by using the shift key (like UK)
try self.set.put(
alloc,
.{ .key = .{ .translated = .plus }, .mods = inputpkg.ctrlOrSuper(.{ .shift = true }) },
.{ .increase_font_size = 1 },
);
try self.set.put(
alloc,
.{ .key = .{ .unicode = '+' }, .mods = inputpkg.ctrlOrSuper(.{}) },