From 57e8b428c3b81037091a82758248313bebad3fac Mon Sep 17 00:00:00 2001 From: Argn0 Date: Thu, 11 Jan 2018 15:45:44 +0100 Subject: [PATCH] e.accept() and return --- qutebrowser/mainwindow/statusbar/command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qutebrowser/mainwindow/statusbar/command.py b/qutebrowser/mainwindow/statusbar/command.py index 6ea9b5552..056203290 100644 --- a/qutebrowser/mainwindow/statusbar/command.py +++ b/qutebrowser/mainwindow/statusbar/command.py @@ -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