Index: views/controls/textfield/textfield_views_model.cc |
=================================================================== |
--- views/controls/textfield/textfield_views_model.cc (revision 97884) |
+++ views/controls/textfield/textfield_views_model.cc (working copy) |
@@ -611,10 +611,10 @@ |
void TextfieldViewsModel::CancelCompositionText() { |
DCHECK(HasCompositionText()); |
ui::Range range = render_text_->GetCompositionRange(); |
+ ClearComposition(); |
msw
2011/08/29 20:38:05
Why did you make this change?
I have a vague feeli
xji
2011/08/30 00:39:41
Inside SetCursorPosition(), we will need to get th
msw
2011/08/30 01:17:07
OK.
xji
2011/08/31 19:01:06
From suzhe
"The caller should make sure that the c
|
string16 new_text = GetText(); |
render_text_->SetText(new_text.erase(range.start(), range.length())); |
render_text_->SetCursorPosition(range.start()); |
- ClearComposition(); |
if (delegate_) |
delegate_->OnCompositionTextConfirmedOrCleared(); |
} |