gtk: disable shortcuts in tab view

pull/5795/head
Jeffrey C. Ollie 2025-02-16 13:56:11 -06:00
parent 497a1b6f8f
commit 25b93ceb55
No known key found for this signature in database
GPG Key ID: 6F86035A6D97044E
1 changed files with 14 additions and 1 deletions

View File

@ -38,7 +38,20 @@ pub fn init(self: *TabView, window: *Window) void {
if (adwaita.versionAtLeast(1, 2, 0)) {
// Adwaita enables all of the shortcuts by default.
// We want to manage keybindings ourselves.
self.tab_view.removeShortcuts(.{});
self.tab_view.removeShortcuts(.{
.alt_digits = true,
.alt_zero = true,
.control_end = true,
.control_home = true,
.control_page_down = true,
.control_page_up = true,
.control_shift_end = true,
.control_shift_home = true,
.control_shift_page_down = true,
.control_shift_page_up = true,
.control_shift_tab = true,
.control_tab = true,
});
}
_ = adw.TabView.signals.page_attached.connect(