mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-25 13:16:11 +03:00
apprt/gtk: add ctrl+page-up/down as prev/next tab
This commit is contained in:
@ -927,7 +927,7 @@ pub fn keyCallback(
|
|||||||
|
|
||||||
// We only execute the binding on press/repeat but we still consume
|
// 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.
|
// 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) {
|
if (event.action == .press or event.action == .repeat) {
|
||||||
try self.performBindingAction(binding_action);
|
try self.performBindingAction(binding_action);
|
||||||
}
|
}
|
||||||
|
@ -602,6 +602,17 @@ pub fn default(alloc_gpa: Allocator) Allocator.Error!Config {
|
|||||||
.{ .goto_split = .right },
|
.{ .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
|
// Viewport scrolling
|
||||||
try result.keybind.set.put(
|
try result.keybind.set.put(
|
||||||
alloc,
|
alloc,
|
||||||
|
Reference in New Issue
Block a user