add increase_font_size keybind with plus

This commit is contained in:
LordMZTE
2024-01-22 16:15:03 +01:00
parent 531527c996
commit 8182b69ae3

View File

@ -1029,6 +1029,12 @@ pub fn default(alloc_gpa: Allocator) Allocator.Error!Config {
.{ .key = .equal, .mods = inputpkg.ctrlOrSuper(.{}) }, .{ .key = .equal, .mods = inputpkg.ctrlOrSuper(.{}) },
.{ .increase_font_size = 1 }, .{ .increase_font_size = 1 },
); );
// Increase font size mapping for keyboards with dedicated plus keys (like german)
try result.keybind.set.put(
alloc,
.{ .key = .plus, .mods = inputpkg.ctrlOrSuper(.{}) },
.{ .increase_font_size = 1 },
);
try result.keybind.set.put( try result.keybind.set.put(
alloc, alloc,
.{ .key = .minus, .mods = inputpkg.ctrlOrSuper(.{}) }, .{ .key = .minus, .mods = inputpkg.ctrlOrSuper(.{}) },