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.
This commit is contained in:
Florian Bruhin 2023-08-15 09:22:30 +02:00
parent 57421dcd99
commit 8e152aaa0a
1 changed files with 1 additions and 0 deletions

View File

@ -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)