e.accept() and return

This commit is contained in:
Argn0 2018-01-11 15:45:44 +01:00
parent 200b36bd36
commit 57e8b428c3

View File

@ -234,9 +234,10 @@ class Command(misc.MinimalLineEditMixin, misc.CommandLineEdit):
"""
text = self.text()
if text in modeparsers.STARTCHARS and e.key() == Qt.Key_Backspace:
e.accept()
modeman.leave(self._win_id, usertypes.KeyMode.command,
'prefix deleted')
return
if e.key() == Qt.Key_Return:
e.ignore()
return