Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Unified Diff: ui/base/ime/input_method_auralinux.cc

Issue 1257003002: OnPreeditChanged should update the internal composition after checking it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/base/ime/input_method_auralinux_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_auralinux.cc
diff --git a/ui/base/ime/input_method_auralinux.cc b/ui/base/ime/input_method_auralinux.cc
index b4d436af403352c0723e4823bfdb00e667636af6..bf201d0aa2025560cff272895e7f0c6dd0ed9ae7 100644
--- a/ui/base/ime/input_method_auralinux.cc
+++ b/ui/base/ime/input_method_auralinux.cc
@@ -243,8 +243,6 @@ void InputMethodAuraLinux::OnPreeditChanged(
if (suppress_next_result_ || IsTextInputTypeNone())
return;
- composition_ = composition_text;
-
if (is_sync_mode_) {
if (!composition_.text.empty() || !composition_text.text.empty())
composition_changed_ = true;
@@ -252,6 +250,8 @@ void InputMethodAuraLinux::OnPreeditChanged(
SendFakeProcessKeyEvent(0);
GetTextInputClient()->SetCompositionText(composition_text);
}
+
+ composition_ = composition_text;
}
void InputMethodAuraLinux::OnPreeditEnd() {
« no previous file with comments | « no previous file | ui/base/ime/input_method_auralinux_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698