With emacs-style I mean a two part shortcut like “Ctrl+T, T”.
The following minimal add-on worked in 2.1.44 but in 2.1.45+ it breaks the built-in shortcuts for latex such as “Ctrl+T, T” (E/M):
from aqt import gui_hooks from aqt.utils import tooltip def shortcut_test(cuts, editor): cuts.append(("Ctrl+T, D", lambda: tooltip("test"))) gui_hooks.editor_did_init_shortcuts.append(shortcut_test)
As far as I see my code is similar to what other add-ons do.
My code seems to have broken with the changes in the editor from the beginning of May.
Is the problem my code or is it in Anki?
This is relevant for me because I use two part shortcuts as a default in my add-on Extended Tag Add/Edit Dialog. I’d like to keep a combination starting with Ctrl+T because Arthur also has a tag related add-on for med students named high yield tags that uses two part shortcuts that start with ctrl+t (actually after talking with ankingmed we decided to switch to these similar shortcuts at the same time last year).