Luc Mcgrady d036c2ade4 feat: expose setParameterUnlockClickTimeoutMs (#4810)
<!--
Title (for the Pull Request title field at the top):
Use a short prefix so the change type is obvious. You do not need to
repeat it in the body below.

Examples:
- fix: — bugfix
- feat: — feature
- refactor: — internal change without user-facing feature
- docs: — documentation only
- chore: — tooling, CI, deps, build housekeeping
- test: — tests only
-->

## Linked issue (required)

closes https://github.com/ankitects/anki/issues/4809
<!-- Fixes #123 / Closes #123 / Refs #123 -->

## Summary / motivation (required)

<!-- What this PR does and why. For larger changes, add enough context
for reviewers. -->
This exposes a JS api to set the speed at which you click to unlock the
FSRS parameters (See #4372)

## Steps to reproduce (required, use N/A if not applicable)

<!-- Steps to reproduce: how to trigger the bug in the broken state (the
"before").
 - Mainly for bugfixes;
    - For bugs: numbered steps before the fix. For non-bugs: write N/A.
 - use N/A for features, refactors, docs, chore, etc.
-->

N/A

## How to test (required)

<!--- How to test: how you verified the change (checks, unit tests,
manual steps, edge cases — the "after" or general validation). --->
Open the console in the deck options and run
`anki.setParameterUnlockClickTimeoutMs(0)`. If you set it to 0 then it
will be impossible to unlock. if you set it to something very high it
will be very easy.

### Checklist (minimum)

- [X] I ran `./ninja check` or an equivalent relevant check locally.
- [ ] I added or updated tests when the change is non-trivial or
behavior changed.

### Details

<!-- Commands, manual steps, edge cases, and what you observed -->

## Before / after behavior (optional)

<!-- For bugfixes: behavior before vs after. For other types: N/A or a
short note. -->

## Risk / compatibility / migration (optional)

<!-- Breaking changes, rollout notes, or N/A for small / low-risk PRs
-->

## UI evidence (required for visual changes; otherwise N/A)

<!-- Screenshot or short video -->

## Scope

- [X] This PR is focused on one change (no unrelated edits).
2026-05-12 13:18:42 +03:00
2025-10-27 19:27:50 +07:00
2026-05-05 17:29:18 -04:00
2026-05-05 17:29:18 -04:00
2026-03-31 08:26:59 -04:00
2026-05-11 17:31:56 +03:00
2026-05-05 17:29:18 -04:00
2026-01-11 18:50:16 +07:00
2026-05-05 17:29:18 -04:00
2026-03-31 08:26:59 -04:00
2026-05-05 17:29:18 -04:00
2026-05-05 17:29:18 -04:00
2025-06-29 14:38:35 +07:00
2025-09-17 16:50:13 +10:00
2025-06-29 22:16:59 +07:00
2025-06-19 14:03:16 +07:00
2025-06-19 14:03:16 +07:00
2026-05-11 13:04:24 -04:00
2024-03-31 09:16:31 +01:00

Anki

Build Status Documentation

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

About

Anki is a spaced repetition program. Please see the website to learn more.

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

Getting Started

Contributing

Want to contribute to Anki? Check out the Contribution Guidelines.

For more information on building and developing, please see Development.

Contributors

The following people have contributed to Anki: CONTRIBUTORS

Anki Betas

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

License

Anki's license: LICENSE

S
Description
GitHub Trending: ankitects/anki
Readme
513 MiB
Languages
Rust 37.5%
Python 22.9%
MDX 19.5%
TypeScript 9.5%
Svelte 8.9%
Other 1.3%