Skip to content

Commit 50c28a9

Browse files
committed
fix mouse event in console
1 parent c212e91 commit 50c28a9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎python/console_sci.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,11 +435,12 @@ def keyPressEvent(self, e):
435435
def mousePressEvent(self, e):
436436
"""
437437
Re-implemented to handle the mouse press event.
438-
event: the mouse press event (QMouseEvent)
438+
e: the mouse press event (QMouseEvent)
439439
"""
440440
if e.button() == Qt.MidButton:
441+
stringSel = unicode(QApplication.clipboard().text(QClipboard.Selection))
442+
self.insertFromDropPaste(stringSel)
441443
self.setFocus()
442-
self.paste()
443444
e.accept()
444445
else:
445446
QsciScintilla.mousePressEvent(self, e)

0 commit comments

Comments
 (0)