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

Unified Diff: ui/views/controls/textfield/native_textfield_win.cc

Issue 15841009: Delays find-in-page until IME composition is committed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed a Paste operation. Created 7 years, 7 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
Index: ui/views/controls/textfield/native_textfield_win.cc
diff --git a/ui/views/controls/textfield/native_textfield_win.cc b/ui/views/controls/textfield/native_textfield_win.cc
index 8a139ccf3d7c210ee6d54295fde60680de1acfc0..46c422f27b284a8b4eb67b87c8ccfeac267add7f 100644
--- a/ui/views/controls/textfield/native_textfield_win.cc
+++ b/ui/views/controls/textfield/native_textfield_win.cc
@@ -1062,6 +1062,8 @@ void NativeTextfieldWin::OnPaste() {
textfield_->SyncText();
text_before_change_.clear();
ReplaceSel(collapsed.c_str(), true);
+ if (TextfieldController* controller = textfield_->GetController())
+ controller->OnAfterPaste();
}
}

Powered by Google App Engine
This is Rietveld 408576698