Exemple #1
0
 def mouseReleaseEvent(self, evt):
     if not isMac and not isWin and evt.button() == Qt.MidButton:
         # middle click on x11; munge the clipboard before standard
         # handling
         mime = self.prepareClip(mode=QClipboard.Selection)
         AnkiWebView.mouseReleaseEvent(self, evt)
         self.restoreClip(mime, mode=QClipboard.Selection)
     else:
         AnkiWebView.mouseReleaseEvent(self, evt)
Exemple #2
0
 def mouseReleaseEvent(self, evt):
     if not isMac and not isWin and evt.button() == Qt.MidButton:
         # middle click on x11; munge the clipboard before standard
         # handling
         mime = self.prepareClip(mode=QClipboard.Selection)
         AnkiWebView.mouseReleaseEvent(self, evt)
         self.restoreClip(mime, mode=QClipboard.Selection)
     else:
         AnkiWebView.mouseReleaseEvent(self, evt)