From 34a6bc87dedcd93e7c9a1cd7ece021ce7e0f47a3 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 26 Sep 2012 17:34:39 +0000 Subject: [PATCH] Merge revision 803 changes: - Win: Erase in-progress IME composition on cancel (issue #701). git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1084@804 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- cef1/libcef/webwidget_host_win.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cef1/libcef/webwidget_host_win.cc b/cef1/libcef/webwidget_host_win.cc index 57125ec62..8b50c5eb0 100644 --- a/cef1/libcef/webwidget_host_win.cc +++ b/cef1/libcef/webwidget_host_win.cc @@ -942,14 +942,14 @@ LRESULT WebWidgetHost::OnImeEndComposition(UINT message, WPARAM wparam, return 0; if (ime_input_.is_composing()) { - // A composition has been ended while there is an ongoing composition, - // i.e. the ongoing composition has been canceled. - // Reset the composition status of both of the ImeInput object and the - // window. - ime_input_.CancelIME(view_); - ime_input_.ResetComposition(view_); + webwidget_->setComposition(WebKit::WebString(), + std::vector(), + 0, 0); } + + ime_input_.ResetComposition(view_); ime_input_.DestroyImeWindow(view_); + // Let WTL call ::DefWindowProc() and release its resources. handled = FALSE; return 0;