Open Yi-Zhou opened 1 year ago
It seems like "u" is hard-coded as an undo key in Anki itself, as of May 18: https://forums.ankiweb.net/t/change-new-shortcuts-in-2-1-63/30405 Maybe looking up Anki change notes for the versions in those forum posts will help you understand the behavior you are seeing.
The documentation on the extension's config page includes the following:
"m_toolbox _duplicates": Takes functions and binds them to new shortcuts.
This object takes inputs of the form "(function keyword)":"(shortcut)", separated by commas. (e.g. {"m_toolbox undo":"u","m_toolbox study":"9"})
It looks like you're trying to set this functionality with the line "m_toolbox undo+++ uu": "U"
. It might be worth trying to temporarily remove the additional shortcuts you set for this function, and see what happens when you use the exact form suggested in the documentation snippet above. If that doesn't do what you want, then the docs probably have an error.
Also, just making sure you noticed: you have the shortcut bound to "U", not "u".
I'm actually trying to get the default shortcut behavior for "u" disabled, but it seems like that is not currently supported. I'm very new to this extension, so apologies if I said something incorrect or obvious. This is all stuff I am just learning today. Hopefully something was helpful.
I am using Anki 2.1.65 on a MacBook Air 2020 (M1). The add-on won't map 'u' to undo.
I have attempted to restart Anki, and I am able to map the number 5 and Qt.Key_Up to the "undo" function. However, the key binding does not work for the 'u' key. I have also tried disabling all other add-ons and restarting, but the issue persists.
I have observed some strange behavior which I have captured in this videohttps://www.loom.com/share/24ed163edfac4ed38fa19adb28c5a3d0?sid=77f20116-dfec-49b1-a5b4-b6ac56a55bc0. In the video, you can observe my attempts to press the 'u' key. Initially, it shows "nothing to undo," but after I have reviewed at least one card, there is no response when pressing the 'u' key.
It's worth noting that I have successfully bound the number 5 and Qt.Key_Up keys to the "undo" function. These keys do work.
Do you have any ideas about what might be happening here or how I can debug this issue? Below are my complete settings if it helps:
Thank you!