Leave command mode on return press
This commit is contained in:
parent
b4b72f07b7
commit
74374df5fd
@ -274,10 +274,9 @@ class _Command(QLineEdit):
|
|||||||
'/': self.got_search,
|
'/': self.got_search,
|
||||||
'?': self.got_search_rev,
|
'?': self.got_search_rev,
|
||||||
}
|
}
|
||||||
self.history.stop()
|
|
||||||
text = self.text()
|
text = self.text()
|
||||||
self.history.append(text)
|
self.history.append(text)
|
||||||
self.setText('')
|
modes.leave("command")
|
||||||
if text[0] in signals:
|
if text[0] in signals:
|
||||||
signals[text[0]].emit(text.lstrip(text[0]))
|
signals[text[0]].emit(text.lstrip(text[0]))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user