mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
disable context menu in webview
This commit is contained in:
parent
da8057701d
commit
d7216ea1ad
1 changed files with 2 additions and 1 deletions
|
@ -66,7 +66,8 @@ class AnkiWebView(QWebView):
|
|||
return
|
||||
QWebView.keyPressEvent(self, evt)
|
||||
def contextMenuEvent(self, evt):
|
||||
QWebView.contextMenuEvent(self, evt)
|
||||
return
|
||||
#QWebView.contextMenuEvent(self, evt)
|
||||
def dropEvent(self, evt):
|
||||
pass
|
||||
def setLinkHandler(self, handler=None):
|
||||
|
|
Loading…
Reference in a new issue