Skip to content

Fix the key to cancel the punctuation list.#820

Merged
zonble merged 2 commits intoopenvanilla:masterfrom
zonble:symbol
Apr 20, 2026
Merged

Fix the key to cancel the punctuation list.#820
zonble merged 2 commits intoopenvanilla:masterfrom
zonble:symbol

Conversation

@zonble
Copy link
Copy Markdown
Contributor

@zonble zonble commented Apr 19, 2026

When a user press ESC key while showing the punctuation list, it is expected that the inserted space should disappear. Currently the space would be inserted, and the PR fixes the issue.

@zonble zonble changed the title Fix the key to cancel to punctuation list. Fix the key to cancel the punctuation list. Apr 19, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the _handleCandidateState method in KeyHandler.mm to transition to InputStateEmptyIgnoringPreviousState when the grid becomes empty after a deletion. The review feedback suggests calling [self clear] before this transition to ensure the internal state, such as the walk result, is properly reset to avoid using stale data in subsequent inputs.

Comment thread Source/KeyHandler.mm
Copy link
Copy Markdown
Contributor

@lukhnos lukhnos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@zonble zonble merged commit b81bb53 into openvanilla:master Apr 20, 2026
10 checks passed
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.

2 participants