Paste clipboard when using shift-insert in prompts
This commit is contained in:
parent
7dba877354
commit
64feb62fb1
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user