Merge pull request #1357 from LordMZTE/plus-keybind

add increase_font_size keybind with plus
This commit is contained in:
Mitchell Hashimoto
2024-01-22 07:59:46 -08:00
committed by GitHub

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(.{}) },