mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
disable context menu in editor too
This commit is contained in:
parent
d93259c960
commit
690f6b0640
1 changed files with 6 additions and 5 deletions
|
@ -832,11 +832,12 @@ class EditorWebView(AnkiWebView):
|
||||||
if self.origClip:
|
if self.origClip:
|
||||||
self.restoreClip()
|
self.restoreClip()
|
||||||
|
|
||||||
def contextMenuEvent(self, evt):
|
# Buggy; disable for now.
|
||||||
# adjust in case the user is going to paste
|
# def contextMenuEvent(self, evt):
|
||||||
self.prepareClip()
|
# # adjust in case the user is going to paste
|
||||||
QWebView.contextMenuEvent(self, evt)
|
# self.prepareClip()
|
||||||
self.restoreClip()
|
# QWebView.contextMenuEvent(self, evt)
|
||||||
|
# self.restoreClip()
|
||||||
|
|
||||||
def dropEvent(self, evt):
|
def dropEvent(self, evt):
|
||||||
oldmime = evt.mimeData()
|
oldmime = evt.mimeData()
|
||||||
|
|
Loading…
Reference in a new issue