Skip to content
Permalink
Browse files

fix mouse event in console

  • Loading branch information
slarosa committed Oct 6, 2012
1 parent c212e91 commit 50c28a9a3fbf5e049b6423200e0b374cd997965a
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/console_sci.py
@@ -435,11 +435,12 @@ def keyPressEvent(self, e):
def mousePressEvent(self, e):
"""
Re-implemented to handle the mouse press event.
event: the mouse press event (QMouseEvent)
e: the mouse press event (QMouseEvent)
"""
if e.button() == Qt.MidButton:
stringSel = unicode(QApplication.clipboard().text(QClipboard.Selection))
self.insertFromDropPaste(stringSel)
self.setFocus()
self.paste()
e.accept()
else:
QsciScintilla.mousePressEvent(self, e)

0 comments on commit 50c28a9

Please sign in to comment.
You can’t perform that action at this time.