From 64feb62fb11d0b7467c0c7aa9d45601bbc650193 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 29 Mar 2017 16:17:43 +0200 Subject: [PATCH] Paste clipboard when using shift-insert in prompts --- qutebrowser/misc/miscwidgets.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/qutebrowser/misc/miscwidgets.py b/qutebrowser/misc/miscwidgets.py index 0337269ea..f696951ec 100644 --- a/qutebrowser/misc/miscwidgets.py +++ b/qutebrowser/misc/miscwidgets.py @@ -48,11 +48,10 @@ class MinimalLineEditMixin: try: text = utils.get_clipboard(selection=True) except utils.ClipboardError: - pass - else: - e.accept() - self.insert(text) - return + text = utils.get_clipboard() + e.accept() + self.insert(text) + return super().keyPressEvent(e) def __repr__(self):