Skip to content

fix: finish the chapter when the next shortcut passes the last word - #1170

Merged
RealKai42 merged 1 commit into
masterfrom
fix/step-to-next-word
Nov 24, 2026
Merged

RealKai42 merged 1 commit into
masterfrom
fix/step-to-next-word

Conversation

@RealKai42

@RealKai42 RealKai42 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Ctrl+Shift+→ used the next index from the last render. On the last word that index is the word itself, so another press did nothing and the result screen never opened.
  • A second press before the screen updated repeated the same jump. The shortcut and the neighbor preview now move one word from the index at the moment of the key or click.
  • Stepping past the end finishes the chapter and stays on the last word, so a mistake there is still saved.

Test plan

  • CET-4 chapter 1: two rapid Ctrl+Shift+→ presses from cancel land on numerous. Clicking the next-word preview moves one word. Ctrl+Shift+← on cancel stays there.
  • After skipping to meanwhile, one wrong letter and Ctrl+Shift+→ open the result screen. The error book records meanwhile with one mistake.

The shortcut used a next index captured during render, so the last word stayed put and a second press before paint repeated the same jump.
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
qwerty-learner Ready Ready Preview Nov 24, 2026 9:37am UTC

Request Review

@RealKai42
RealKai42 merged commit 490d7e3 into master Nov 24, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — cfab11e2 Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant