From 29eaeea0d6e7434546d8ff7ab7c57744380248bc Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Thu, 17 Jan 2013 19:01:50 +0000 Subject: [PATCH] Merge revision 1009 changes: - Enable IME for all text input types (issue #765). git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1364@1010 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- cef1/libcef/webwidget_host_win.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cef1/libcef/webwidget_host_win.cc b/cef1/libcef/webwidget_host_win.cc index c56c3247e..6eb04686b 100644 --- a/cef1/libcef/webwidget_host_win.cc +++ b/cef1/libcef/webwidget_host_win.cc @@ -985,7 +985,7 @@ void WebWidgetHost::UpdateImeInputState() { if (text_input_type_ != type) { text_input_type_ = type; - if (type == WebKit::WebTextInputTypeText) + if (type != WebKit::WebTextInputTypeNone) ime_input_.EnableIME(view_); else ime_input_.DisableIME(view_); @@ -993,7 +993,7 @@ void WebWidgetHost::UpdateImeInputState() { // Only update caret position if the input method is enabled and the caret // position has changed. - if (type == WebKit::WebTextInputTypeText && caret_bounds != caret_bounds_) { + if (type != WebKit::WebTextInputTypeNone && caret_bounds != caret_bounds_) { caret_bounds_ = caret_bounds; ime_input_.UpdateCaretRect(view_, caret_bounds); }