From d94dec2384c0fb4b147bce134b139cf4a70fdc55 Mon Sep 17 00:00:00 2001 From: Daniel Fox Date: Thu, 9 Jan 2025 14:43:05 -0800 Subject: [PATCH] Add gtk-tabs-can-focus bool config --- src/config/Config.zig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/config/Config.zig b/src/config/Config.zig index 1e1bca74a..0a295dff9 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -2132,6 +2132,16 @@ keybind: Keybinds = .{}, /// and shown when the titlebar is unmaximized. GTK only. @"gtk-titlebar-hide-when-maximized": bool = false, +/// Determines whether or not we allow the tabs in the tab bar to be focussed. +/// +/// If true (the default), users can focus tabs in the tab bar by clicking them, +/// and then use arrow keys to navigate, but focus in the main surface will be +/// lost, requiring the user to change focus back in order to use the terminal. +/// +/// If false, the tab bar will never take focus, keeping the focus on the main +/// window surface. +@"gtk-tabs-can-focus": bool = true, + /// Determines the appearance of the top and bottom bars when using the /// Adwaita tab bar. This requires `gtk-adwaita` to be enabled (it is /// by default).