Bug with caps lock in Anki 25.07.05

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”.

Info:

  • MacBook Air M2 Sequoia 15.5
  • Anki 25.07.05

Possibly related to Caps lock acts as dead key on macOS/Qt 6.8.1 · Issue #3740 · ankitects/anki · GitHub

2 Likes

I am able to reproduce this bug.

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:

  1. In Anki, open an Add or Browse window and put cursor in a text input field.
  2. Press the Caps Lock key to toggle it on.
  3. Press a letter key.
  4. Note that no letter appears in the text input field as expected. This is the bug.
  5. Press a letter key.
  6. Note that the letter correctly appears in the text input field.
  7. Press a letter key.
  8. Note that the letter again correctly appears in the text input field.
  9. Repeat steps 7-8 to see that all subsequent letters appear correctly.
  10. Press the Caps Lock key to toggle it off.
  11. Press the Caps Lock key again to toggle it back on.
  12. 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:

  1. In Anki, open an Add or Browse window and put cursor in a text input field.
  2. Press the Caps Lock key to toggle it on.
  3. Press the Caps Lock key to toggle it off.
  4. Press a letter key.
  5. Note that no letter appears in the text input field as expected. This is a bug.
  6. 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.

1 Like

Same here, same configs. Had to downgrade to 25.02 though.