Anki is a smart spaced repetition flashcard program
Find a file
Hikaru Y 7164723a7a
Fix two issues that can cause editor fields to behave incorrectly (#2540)
* Fix shortcut not being unregistered when Plain/RichTextBadge is detroyed

This fixes an issue where, if the "Show HTML by default" option of
fields located at the same position in two notetypes have different
values, switching between those notetypes during an editor session
would cause the keyboard shortcut (Ctrl+Shift+X) to no longer function
correctly thereafter.

* Don't restore fields' state if notetype has been modified

This fixes an issue where editor fields behave incorrectly after
opening the 'Fields' dialog and customizing the notetype. An example
of incorrect behavior is that after adding a new field and closing
the dialog, the added field would display both richtext input and
plaintext input, regardless of the options.

* Rename type, variable and function

- Apply suggestions from code review
- Also use optional chaining instead of non-null assertion
2023-06-14 09:38:06 +10:00
.buildkite Detect incorrect usage of triple slash in TypeScript (#2524) 2023-05-26 12:49:44 +10:00
.cargo Move protobuf generation into a separate crate; write .py interface in Rust 2023-06-12 09:52:00 +10:00
.config Update Rust deps 2023-03-31 14:38:24 +10:00
.github/ISSUE_TEMPLATE Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.vscode.dist Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
build Move protobuf generation into a separate crate; write .py interface in Rust 2023-06-12 09:52:00 +10:00
cargo Update hakari and licenses 2023-05-29 17:54:00 +10:00
docs Mention that checkout path should not include spaces 2023-05-01 15:39:03 +10:00
ftl Update translations 2023-06-07 16:26:06 +10:00
proto Move generated protobuf into anki_proto 2023-06-12 15:47:51 +10:00
pylib Move protobuf generation into a separate crate; write .py interface in Rust 2023-06-12 09:52:00 +10:00
python Update requests for CVE 2023-05-24 16:09:15 +10:00
qt Fix two issues that can cause editor fields to behave incorrectly (#2540) 2023-06-14 09:38:06 +10:00
rslib Fix build failure in fresh checkout 2023-06-12 17:10:22 +10:00
sass Fix unreadable bootstrap buttons when hovering 2023-05-09 17:04:12 +10:00
tools Automate schema 11 other duplicates clearing (#2542) 2023-06-12 11:14:14 +10:00
ts Fix two issues that can cause editor fields to behave incorrectly (#2540) 2023-06-14 09:38:06 +10:00
.deny.toml Update Rust deps (#2332) 2023-01-18 22:24:29 +10:00
.dprint.json Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
.eslintrc.js Upgrade Svelte (#2506) 2023-05-18 17:04:58 +10:00
.gitattributes try again to improve GitHub's language stats 2021-01-20 13:20:45 +10:00
.gitignore Rework syncing code, and replace local sync server (#2329) 2023-01-18 12:43:46 +10:00
.gitmodules Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.isort.cfg Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.mypy.ini Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.pylintrc Add ability to restore a notetype to its original configuration (#2472) 2023-04-18 14:07:51 +10:00
.rustfmt-empty.toml Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
.rustfmt.toml Move ascii_percent_encoding into a separate repo 2023-04-12 08:45:23 +10:00
.version Bump version 2023-06-05 09:20:00 +10:00
Cargo.lock Split io.rs into separate crate, and use it in proto build 2023-06-12 15:47:51 +10:00
Cargo.toml Split io.rs into separate crate, and use it in proto build 2023-06-12 15:47:51 +10:00
CONTRIBUTORS Making phrasing more clear in dialog which lets user choose a deck to display options for. (#2522) 2023-05-26 12:50:38 +10:00
LICENSE move aqt_data into source folder; implement wheel building 2020-11-04 12:14:03 +10:00
ninja Add env var to enable sourcemaps 2022-12-04 11:37:16 +10:00
package.json Update to the latest TypeScript version 2023-04-12 16:42:28 +10:00
pkgkey.asc add public key for release signing 2018-09-18 10:40:45 +10:00
README.md Add link to website in README 2023-05-31 13:49:19 +10:00
run Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
run.bat Automatically fetch win32 audio tools in .\run.bat 2023-05-11 09:10:22 +10:00
rust-toolchain.toml Update to Rust 1.70 2023-06-07 14:52:31 +10:00
SECURITY.md add SECURITY.md 2021-09-22 22:55:19 +10:00
yarn.lock Upgrade Svelte (#2506) 2023-05-18 17:04:58 +10:00

Anki

Build status

This repo contains the source code for the computer version of Anki.

If you'd like to try development builds of Anki but don't feel comfortable building the code, please see https://betas.ankiweb.net/

For more information on building, please see Development.