After installing Anki 25.07.05, I noticed that every time I type a capital letter, I need to type it twice, or it doesn’t display the letter I typed. When downgrading to an earlier Anki version, it doesn’t present this error. I thought this could be an issue with Mac and the delay of caps-lock, but this doesn’t happen in other applications.
For example: to display “E” I need to type “caps lock + E + E”.
Anki Version 25.07.5 (7172b2d2)
Python 3.13.5 Qt 6.9.1 Chromium 122
Mac Mini M1, macOS Sequoia 15.5 (24F74) and also 15.6 (24G84)
Steps to Reproduce:
In Anki, open an Add or Browse window and put cursor in a text input field.
Press the Caps Lock key to toggle it on.
Press a letter key.
Note that no letter appears in the text input field as expected. This is the bug.
Press a letter key.
Note that the letter correctly appears in the text input field.
Press a letter key.
Note that the letter again correctly appears in the text input field.
Repeat steps 7-8 to see that all subsequent letters appear correctly.
Press the Caps Lock key to toggle it off.
Press the Caps Lock key again to toggle it back on.
Repeat steps 3-11 to see that the bug is repeatable. Each time Caps Lock is toggled on, the next keypress does not appear in the text input field as expected.
Whenever Caps Lock is toggled on, it seems that the next subsequent keypress is incorrectly consumed and the typed letter does not appear as expected.
I am also able to reproduce a similar but slightly different bug behavior:
In Anki, open an Add or Browse window and put cursor in a text input field.
Press the Caps Lock key to toggle it on.
Press the Caps Lock key to toggle it off.
Press a letter key.
Note that no letter appears in the text input field as expected. This is a bug.
The remainder of this bug behavior is similar to the original bug. The first keypress seems to be consumed after toggling Caps Lock on and then off.
The bug is seen depending on the number of Caps Lock toggles:
Toggling Caps Lock:
On → bug
On, Off → bug
On, Off, On → no bug
On, Off, On, Off → no bug
On, Off, On, Off, On → bug
On, Off, On, Off, On, Off → bug
On, Off, On, Off, On, Off, On → no bug
etc.
The bug behavior occurs also when using the macOS virtual keyboard (“Show Keyboard Viewer”), using the mouse/cursor to enter keypresses on the on-screen, virtual keyboard.
So, the issue is not occuring at the physical keyboard/keypress input level but at some level above.
In the current version of Anki on osX, when I am in the editing window, editing a field of my note, and switch keyboards, the first character I type is lost. This happens switching from the US to the PY (russian) keyboard and back from PY to US. This happened after I upgraded to the latest Anki from the February version, so this was my first switch to the new installer. I am using the latest version of sequoia on a ~three year old power book (not silicon).
When I’m making cards and trying to capitalize something, the first time I type the letter on the keyboard (pressing Caps Lock and letter), anki doesn’t register it. However, after pressing the Caps Lock and letter again, then the capitalized letter shows up on my Anki. If I use shift instead of caps lock it’s no issue. I don’t know why it’s happening, just mildly annoying since I like to use caps instead of shift when typing. This has been going on since Anki version 25.02. Please fix.