I’m trying to update an addon with a fair amount of monkeypatching in it that no longer works. One of the monkeypatches is to override Editor.onCloze, which no longer does anything, presumably because it’s all in JS now. Is it possible to change the behavior of the cloze deletion button and its corresponding keyboard shortcut? Or am I better off just adding a new button and shortcut?
1 Like
I don’t think it’s possible to override the button’s behavior anymore. Definitely better to add a new button.
1 Like
Thanks. What about the keyboard shortcut? If I use registerShortcut
using an existing shortcut, will it override or do nothing?
I don’t think it overrides the existing shortcut: Make registerShortcut from anki/shortcuts package override conflicting shortcuts by kleinerpirat · Pull Request #2391 · ankitects/anki · GitHub
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.