Skip to content

Commit

Permalink
Clean composing text when resetting the keyboard layout
Browse files Browse the repository at this point in the history
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
  • Loading branch information
svillar committed Jan 15, 2024
1 parent cb96468 commit b0fb85b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ private void resetKeyboardLayout() {
mKeyboardView.setKeyboard(mCurrentKeyboard.getAlphabeticKeyboard());
}
handleShift(false);
cleanComposingText();
updateCandidates();
}

Expand Down

0 comments on commit b0fb85b

Please sign in to comment.