Anki review goes to next card too fast. Debounce?

Before posting, please do the following:

  1. Search these forums.
  2. Read Getting Help.

Is your feature request related to a problem? Please describe.
With the 2025 qt6 releases of anki it seems like it’s gotten much faster. For some reason, when go through my cards, hitting my numpad’s enter button or 1,2,3 for scoring, it will skip the next card. This used to happen on Ankidroid too, but they put debouncing on the “next” interaction, so it would accidently register double clicks or a single tap that’s for some reason read twice.

Essentially my setup is erroneously reading multiple next presses. I’ve disabled add-ons and still see the behavior.

Describe the solution you’d like
Some amount of debounce put on the next card/back of card being shown.

Describe alternatives you’ve considered
I’m already using an addon that limits how fast you can show the next card, which helps, but it doesn’t do anything for the showing of the back of cards.

Can you say more about how you’re entering these keypresses – what input device, what OS? Perhaps I’m being naïve about this and someone can correct me, but I would think that Anki doesn’t have a lot of say in what keypresses it “hears” from your keyboard and OS if they register that the Enter key was pressed twice.

I’m not an expert in these things, but assentially it’s this:

The keyboard emits a signal when a key is pressed, which is interpreted by drivers and firmware. The OS then receives the signal and passes it through to a program. The program may choose to ignore key events or do something once it registers certain key events or key combinations.


In OPs case it seems that his keyboard is misbehaving (or maybe drivers / firmware?) which is why he’s experiencing cards being skipped. And what he is asking for is essentially a little piece of code that ignores the keyboard events (like Enter), when it happens consecutively in a specific time frame (like 500ms).

(I’ll also add that I cannot reproduce this with my keyboards)

Thank you! The way you explain it, it does make sense that an app could potentially ignore keypresses. But it also seems like fixing the keyboard issue is a more effective solution.

1 Like

yeah my switches on my keyboard might need to be replaced. At the same time, it’s not too uncommon to have debounce on inputs that user may unintentionally hit. And it does exist in ankidroid as well.

Update:
Alright I tested it with a working game controller, and it was the same behavior actually, sometimes it skips the back of the card quickly.

1 Like

Hi, I am having the same/similar issue. For context, I am on a mac running the latest version of anki in safe mode (No add ons). 2 scenarios tend to occur which are VERY FRUSTRATING

Scenario 1

  1. The front of a card is shown
  2. I press spacebar/Show answer
  3. NOTHING HAPPENS
  4. I press spacebar again
  5. The answer flashes FOR LESS THAN A SECOND then it shows the FRONT OF THE NEXT CARD IMMEDIATELY

Scenario 2

  1. The front of a card is shown
  2. I press spacebar/Show answer
  3. The answer is shown upon the first input! :smiley:
  4. I press spacebar again to go the next card
  5. NOTHING HAPPENS :enraged_face:
  6. I press spacebar again
  7. The front of the next card is shown alone FOR LESS THAN A SECOND then is IMMEDIATELY FLIPPED to show the front and the back

The weirdest part is, once I go back/hit undo to look at the back of the last card, or just the front of the next card the inputs tend to work the second time around. However, once the next card (or the next next card) is shown the issue repeats itself.

Furthermore this issue IS NOT present on my iPhone, only present on my mac.

I do have a lot of decks, like a lot, but anki is very rudimentary is it not? Furthermore most of my decks have no pictures so I don’t think its due to “overload” (not even sure thats the right term, I am the opposite of a computer whiz).

I might end up making my own post about this because it may be hard for someone who knows what their doing to find the reply dungeon. However, if you see this and know what you’re doing please reach out. I need to study for CBSE and this is not it…

Please and thank you in advance.

The OP states that he clicks once and it registers multiple times.

You state that you click once, nothing happens, you click again, after a delay both clicks happen in succession.

I thus think you’re having a different and unrelated issue. I think I remember that some users were able to solve the issue you’re having by changing the video drivers (see https://docs.ankiweb.net/troubleshooting.html). Debouncing might not be able to help you though, if something (whatever that might be) takes longer to process than expected.

For others, here’s the topic CJersey opened:

2 Likes

Thank you Anon will try that now and lyk

i don’t actually know if it’s registered more than once. It has the behavior of if I clicked twice. The behavior is very similar to what CJersey is describing - though the issue of “nothing happens isn’t present” so that might be unrelated. I was on software rendering for the video driver.

I switched to DirectX & Vulkan the default on windows, and still have the same issue

Given the issue happens with a controller too, i don’t think it’s a “just my keyboard” issue anymore.

I have a keyboard with hotswappable switches so I swithced out the Enter key that I was using and will report if it makes a difference.

1 Like