diff --git a/qutebrowser/app.py b/qutebrowser/app.py index 91884d3a7..486263b76 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -106,6 +106,8 @@ class QuteBrowser(QApplication): self.setQuitOnLastWindowClosed(False) self.lastWindowClosed.connect(self.shutdown) + self.mainwindow.tabs.keypress.connect( + self.mainwindow.status.txt.clear_tmp) self.mainwindow.tabs.keypress.connect(self.keyparser.handle) self.keyparser.set_cmd_text.connect( self.mainwindow.status.cmd.set_cmd_text) diff --git a/qutebrowser/widgets/statusbar.py b/qutebrowser/widgets/statusbar.py index e9aeefaeb..9b851746c 100644 --- a/qutebrowser/widgets/statusbar.py +++ b/qutebrowser/widgets/statusbar.py @@ -525,6 +525,11 @@ class _Text(TextBase): """ self.temporary = txt + @pyqtSlot() + def clear_tmp(self): + """Clear a temporary text.""" + self.temporary = '' + class _KeyString(TextBase):