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
This commit is contained in:
parent
7accdf288d
commit
34a6bc87de
|
@ -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<WebKit::WebCompositionUnderline>(),
|
||||
0, 0);
|
||||
}
|
||||
|
||||
ime_input_.ResetComposition(view_);
|
||||
ime_input_.DestroyImeWindow(view_);
|
||||
|
||||
// Let WTL call ::DefWindowProc() and release its resources.
|
||||
handled = FALSE;
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue