diff --git a/src/Surface.zig b/src/Surface.zig index e3faa8dc1..b13f3749a 100644 --- a/src/Surface.zig +++ b/src/Surface.zig @@ -927,7 +927,7 @@ pub fn keyCallback( // We only execute the binding on press/repeat but we still consume // the key on release so that we don't send any release events. - log.debug("key event consumed by binding action={}", .{binding_action}); + log.debug("key event binding consumed={} action={}", .{ consumed, binding_action }); if (event.action == .press or event.action == .repeat) { try self.performBindingAction(binding_action); } diff --git a/src/config/Config.zig b/src/config/Config.zig index 95b0681f5..40ea9fd08 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -602,6 +602,17 @@ pub fn default(alloc_gpa: Allocator) Allocator.Error!Config { .{ .goto_split = .right }, ); + try result.keybind.set.putUnconsumed( + alloc, + .{ .key = .page_up, .mods = .{ .ctrl = true } }, + .{ .previous_tab = {} }, + ); + try result.keybind.set.putUnconsumed( + alloc, + .{ .key = .page_down, .mods = .{ .ctrl = true } }, + .{ .next_tab = {} }, + ); + // Viewport scrolling try result.keybind.set.put( alloc,