Bỏ qua đến nội dung

Change Behaviour of Enter, Return and Space When Answer Shown

Chờ xử lý #anki #addon #change #behaviour #enter #return #and
https://github.com/baderj/anki-space-behaviour
18/5/2021

Cách tải addon Change Behaviour of Enter, Return and Space When Answer Shown

Bạn có thể tải addon bằng một trong hai cách sau:

Click nút Copy bên dưới để copy code vào clipboard

2018406030

Sau đó mở Anki → Tools → Add-ons → Get Add-ons → Dán code → OK

Mở trang addon trên AnkiWeb và tìm mã code ở cuối trang

Mở trên AnkiWeb

Cuộn xuống cuối trang AnkiWeb, tìm dòng có mã code 2018406030 và copy

5
1

Mô tả chi tiết

Description This add-on changes the behaviour of the Space, Enter and Return key in the answer state from answering Good to either being ignored or reshowing the answer.

Why The gamepad button mappings on AnkiMobile has two functions that can be used to show the answer:

  • “Show Answer/Answer Good”: This is the behaviour of Anki 2.1 when pressing Space, Enter or Return. It shows the answer when the question is shown, and answers Good when the answer is shown.
  • “Show Answer”: It shows the answer when the question is shown, and when the answer is shown shows the answer again.

I prefer the second option for two reasons:

  1. Not having two functions overloaded on the same button prevents accidental double taps from immediatly answering good.
  2. Showing the answer again has a nice side effect: when audio is set to automatically play, it will replay the answer audio. The regular Replay Audio can be set to replay the question audio in answer. Therefore one has two options to replay audio: one with question (regular replay), and one with only the answer (the “Show Answer” shortcut).

On the Desktop version of Anki, there is no built-in option to only show the answer. Space, Enter and Return will always not only show the answer, but also answer Good. This extension changes this behaviour. By default, pressing Space, Enter or Return in the answer-state will reshow the answer, and therefore replay the audio. This can be changed in the configuration to completely ignore the key.

This extension was inspired by the add-on (Ignore space/enter when answer shown), which currently does not support Anki 2.1.x. If you find a bug or have a feature request, please report them on (GitHub).

Usage To change the behaviour of the Space /Enter / Return key in answer mode go to Tools > Add-ons > Anki Space Behaviour and click Config. Set the mode to ignore when the keys should be ignored:

{ “mode”: “ignore” }

and to show_answer when the answer should be shown again (triggering a replay of the answer audio files):

{ “mode”: “show_again” }


Liên kết hỗ trợ


Reviews (6)

👍 2025-09-17

The space bar still works when I press it, to show the answer (when I set it to disabled). All it doesn’t do is that it doesn’t move on to the next card, which I like.

👍 2023-09-02

Thank you for making this - I’ve been looking for a solution to accidentally hitting the space bar

👍 2023-08-12

It’s so kind of you to port the old version for us! Thank you so much!

👍 2023-08-10

Thanks, it helps a lot!

👍 2022-10-20

Thank you very much. This exactly what I want! I have the habit to push the space key to pay audio/video.

👍 2022-02-20

A neat addition to the Speed focus mode addon!