Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean composing text when resetting the keyboard layout #1178

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

svillar
Copy link
Member

@svillar svillar commented Jan 15, 2024

#1104 enabled word autocompletion in latin keyboard. However it also caused regressions like the following. Whenever there are multiple text entries in a webpage, switching between them does not clear the text used for autocompletion (the composing text) on time, meaning that the content of the newly focused entry is filled in with the text coming from the previously focused entry.

A way to fix that is by clearing the composing text whenever resetKeyboardLayout is called.

Fixes #1177

PR#1104 enabled word autocompletion in latin keyboard. However it
also caused regressions like the following. Whenever there are multiple
text entries in a webpage, switching between them does not clear
the text used for autocompletion (the composing text) on time,
meaning that the content of the newly focused entry is filled in
with the text coming from the previously focused entry.

A way to fix that is by clearing the composing text whenever
resetKeyboardLayout is called.

Fixes #1177
Copy link
Collaborator

@HollowMan6 HollowMan6 left a comment

Choose a reason for hiding this comment

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

LGTM.

@svillar svillar merged commit b0fb85b into main Jan 15, 2024
20 checks passed
@svillar svillar deleted the clean_composing_text branch January 15, 2024 17:31
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.

Autocompletion misbehaviour when switching between text entries
2 participants