Hi,
Please watch the 22 second video on youtube to see the problem: 43Lo8OjEPv0
While I was using Anki version 25.02.7, I was able to undo while my cursor was still in the textbox. However in newer versions (25.09.2 and 25.07.5), I’m unable to do this anymore.
I searched Anki github issues and this forum and found a 2021 post (titled “Ctrl + z not working while with type: fields” by whatchu) saying to install the add-on “Customize Keyboard Shortcuts” and set Alt+Z to m_toolbox_undo, which is a crazy work around for such a basic function of Anki.
Maybe undo (while text box active) was intended to be removed past 25.02.7, but I couldn’t find any github issues or forum posts saying this was intended. So I don’t know.
I’m unable to replicate this on
Version <U+2068>25.09.2 (3890e12c)<U+2069>, Ctrl-Z first deletes the content of the text box and then undoes the card. Perhaps the issue is mac specific?
I tested Anki 25.09.2 on Mac desktop. When the text box is active, the behavior I see is:
- Pressing Command-Z performs undo on editing actions that occurred in the text box itself (typing, text selection, cut, paste, etc.)
- However, Command-Z does not perform undo on actions that occurred outside of the text box. For example, it does not undo the answer on the previous card.
- When reviewing a “Basic (type in the answer)” card, the beginning state is that the text box is active and has focus (so the user can just start typing). In the beginning state, there are no actions that have occurred in the text box, so pressing Command-Z does nothing. (There are no textbox actions to undo.)
In order to undo the answer on a previous card, it is necessary to click outside of the text box so that it loses focus and becomes inactive. Only then does Command-Z perform the Undo Answer action.
2 Likes
I can confirm “A_Blokee”, on my Windows 11 Desktop, undo does work on 25.09.2 as it should.
However, on my Macbook Air M1 the 25.09.2 and 25.07.5, the undo doesn’t work (see video I linked in my original post). The older version of 25.02.7 undo works.
Thanks to “BenJamesBen” for confirming this issue on their Mac desktop
Therefore this is a Mac specific issue
2 Likes