Clear temporary text on keypress.
This commit is contained in:
parent
c57e78b765
commit
ab87c8e8b9
@ -106,6 +106,8 @@ class QuteBrowser(QApplication):
|
|||||||
|
|
||||||
self.setQuitOnLastWindowClosed(False)
|
self.setQuitOnLastWindowClosed(False)
|
||||||
self.lastWindowClosed.connect(self.shutdown)
|
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.mainwindow.tabs.keypress.connect(self.keyparser.handle)
|
||||||
self.keyparser.set_cmd_text.connect(
|
self.keyparser.set_cmd_text.connect(
|
||||||
self.mainwindow.status.cmd.set_cmd_text)
|
self.mainwindow.status.cmd.set_cmd_text)
|
||||||
|
@ -525,6 +525,11 @@ class _Text(TextBase):
|
|||||||
"""
|
"""
|
||||||
self.temporary = txt
|
self.temporary = txt
|
||||||
|
|
||||||
|
@pyqtSlot()
|
||||||
|
def clear_tmp(self):
|
||||||
|
"""Clear a temporary text."""
|
||||||
|
self.temporary = ''
|
||||||
|
|
||||||
|
|
||||||
class _KeyString(TextBase):
|
class _KeyString(TextBase):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user