Editor Focus Guard: stop the caret jumping to the first field

AnkiWeb addon 34785339

Prevents the caret from jumping to the first field during auto-save reloads on Anki 26.08+, by filtering that reload and restoring focus.
AI-generated summary; may contain mistakes.

bugfix-workaround

Open on AnkiWeb Find alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-11-02
Anki versions
26.09~
License
Not found (this does not mean that the addon has no license)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

active

  • Last update or commit: 2026-11-02 (29 days before the snapshot).

GitHub

No GitHub repository linked.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
26.0826.09+2026-11-02
History across monthly snapshots

Loading…

Similar addons

Deck Centerer

Remembers the last reviewed deck and automatically scrolls to it in Anki’s Deck Browser, with optional green outline highlight and configurable retry settings.

deck-management

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 1 Anki 2.1.1~ Updated 2026-07-07
Browser external editor has 1 fork β†’

Opens browser notes in separate external editor windows via context menu or configurable Ctrl+Alt+E shortcut, using a minimal wrapper around Anki's Edit current note dialog with autosync disabled.

note-managementshortcuts

7 votes 65% approval πŸ‘ 7 Β· πŸ‘Ž 0 Anki 2.1.66~ Updated 2022-05-18
Auto Markdown has 2 forks β†’

Converts fields between Markdown and HTML automatically on focus change or manually via a configurable shortcut, while preventing editing of the generated HTML.

formatting

42 votes 56% approval πŸ‘ 30 Β· πŸ‘Ž 12 ⭐ 36 Updated 2019-06-18
Auto Markdown - fix version archived fork

Converts note fields between Markdown and HTML, either automatically on focus changes or manually via a shortcut, while preventing editing of the generated HTML.

formattingobsoletefork-or-reupload

11 votes 52% approval πŸ‘ 9 Β· πŸ‘Ž 2 ⭐ 10 Anki 2.1.49~ Updated 2021-06-19

Description

Keeps the caret in the field you are typing in.

The problem

Anki 26.08 and newer reload the entire note every time the note text changes. The reload replays the arguments the note was originally opened with β€” and those still say "focus field 0" β€” so the caret is thrown back into the first field, often in the middle of a sentence and with no keystroke involved. Typing in the Back field and watching the cursor appear in Front is the usual symptom; on some setups the caret seems to leave the window entirely for a moment.

What this add-on does

The editor's operation handler cannot tell who changed the note, so the editor ends up reloading itself right after its own auto-save. This add-on filters that single flag before the handler runs. Nothing else is altered: the note is still saved exactly as before, and every other operation still reaches the editor.

It also installs a small guard inside the editor page that puts the caret back in the field you were last editing, if focus gets moved away while you are not interacting.

Compatibility

Only needed on 26.08 and newer β€” older versions do not have this reload path at all.

The bug is reported upstream as ankitects/anki#5892, with a fix open at ankitects/anki#5893. Once Anki ships that fix, delete this add-on β€” after that it does nothing useful.

One side effect worth knowing

If another add-on or a script edits the current note behind the editor's back, the editor will no longer refresh by itself. Reopen the note to see the new content.

Support

Please report problems at the support link above, and mention your Anki version. The add-on writes nothing to disk and sends nothing anywhere.