diff options
author | Florian Bruhin <me@the-compiler.org> | 2023-08-15 09:22:30 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2023-08-15 09:22:30 +0200 |
commit | 8e152aaa0ac40a5200658d2b283cdf11b9d7ca0d (patch) | |
tree | f4fe9b8a926e8e85cb16383942469ada650be2b8 | |
parent | 57421dcd99559d0ab2f49628f020bf7aa1fa7d04 (diff) | |
download | qutebrowser-8e152aaa0ac40a5200658d2b283cdf11b9d7ca0d.tar.gz qutebrowser-8e152aaa0ac40a5200658d2b283cdf11b9d7ca0d.zip |
Don't give keyboard focus to tab bar
This partially solves #7820. The web view still loses focus for an unknown
reason (apparently when swtiching out the rendering process?), but at least it
regains focus now when the window is unfocused and then focused again.
-rw-r--r-- | qutebrowser/mainwindow/tabwidget.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qutebrowser/mainwindow/tabwidget.py b/qutebrowser/mainwindow/tabwidget.py index 2e90c46c4..c0c7ee2ad 100644 --- a/qutebrowser/mainwindow/tabwidget.py +++ b/qutebrowser/mainwindow/tabwidget.py @@ -396,6 +396,7 @@ class TabBar(QTabBar): self._win_id = win_id self._our_style = TabBarStyle() self.setStyle(self._our_style) + self.setFocusPolicy(Qt.FocusPolicy.NoFocus) self.vertical = False self._auto_hide_timer = QTimer() self._auto_hide_timer.setSingleShot(True) |