Skip to content

Commit

Permalink
Don't give keyboard focus to tab bar
Browse files Browse the repository at this point in the history
This partially solves qutebrowser#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.
  • Loading branch information
The-Compiler committed Aug 15, 2023
1 parent 57421dc commit 8e152aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qutebrowser/mainwindow/tabwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ def __init__(self, win_id, parent=None):
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)
Expand Down

0 comments on commit 8e152aa

Please sign in to comment.