Paste clipboard when using shift-insert in prompts

This commit is contained in:
Florian Bruhin 2017-03-29 16:17:43 +02:00
parent 7dba877354
commit 64feb62fb1

View File

@ -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):