Skip to content

Commit

Permalink
Reset the IME composition range when the input value changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnCZek committed Nov 18, 2023
1 parent a307fb0 commit 83c8079
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Core/Elements/WidgetTextInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ void WidgetTextInput::SetValue(String value)

text_element->SetText(value);

// Reset the IME composition range when the value changes.
ime_composition_begin_index = 0;
ime_composition_end_index = 0;

FormatElement();
UpdateCursorPosition(true);
}
Expand Down

0 comments on commit 83c8079

Please sign in to comment.