Open TRIAEIOU opened 2 years ago
This bug is annoying. I think that at the moment this breaks about 15 addons from ankiweb. I sometimes get reports that one of my add-ons is broken and - after pointing out that the problem is actually IO - I'm told that it "must" be adjusted to the popular IO. I don't understand why there's no targeted fix for this problem - it's a quick fix and it's not really conceivable that there are side-effects.
Thanks for the reports, guys. I will scope this in for the upcoming 2.1.50 compat release.
Problem description
The addon as downloaded from ankiweb (https://ankiweb.net/shared/info/1374772155) overrides the context menu and "manually" fires other legacy hooks, rather than adding to the context menu. This in turn breaks addons trying to implement "new style" hooks (
gui_hooks.editor_will_show_context_menu
). Offending lines:runHook("EditorWebView.contextMenuEvent", self, m)
<- this doesn't fire the "new style"gui_hooks.editor_will_show_context_menu
EditorWebView.contextMenuEvent = contextMenuEvent
A quick hack would be to also fire the "new style" hooks "manually" on line 160.
Checklist
Please replace the space inside the brackets with an x if the following items apply:
Information about your Anki set-up
Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):
Error message (if any)
If you've received an error message, please copy and paste it between the backticks below: