mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22: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:
|
||||
self.restoreClip()
|
||||
|
||||
def contextMenuEvent(self, evt):
|
||||
# adjust in case the user is going to paste
|
||||
self.prepareClip()
|
||||
QWebView.contextMenuEvent(self, evt)
|
||||
self.restoreClip()
|
||||
# Buggy; disable for now.
|
||||
# def contextMenuEvent(self, evt):
|
||||
# # adjust in case the user is going to paste
|
||||
# self.prepareClip()
|
||||
# QWebView.contextMenuEvent(self, evt)
|
||||
# self.restoreClip()
|
||||
|
||||
def dropEvent(self, evt):
|
||||
oldmime = evt.mimeData()
|
||||
|
|
Loading…
Reference in a new issue