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
This commit is contained in:
parent
6990820200
commit
29eaeea0d6
|
@ -985,7 +985,7 @@ void WebWidgetHost::UpdateImeInputState() {
|
||||||
|
|
||||||
if (text_input_type_ != type) {
|
if (text_input_type_ != type) {
|
||||||
text_input_type_ = type;
|
text_input_type_ = type;
|
||||||
if (type == WebKit::WebTextInputTypeText)
|
if (type != WebKit::WebTextInputTypeNone)
|
||||||
ime_input_.EnableIME(view_);
|
ime_input_.EnableIME(view_);
|
||||||
else
|
else
|
||||||
ime_input_.DisableIME(view_);
|
ime_input_.DisableIME(view_);
|
||||||
|
@ -993,7 +993,7 @@ void WebWidgetHost::UpdateImeInputState() {
|
||||||
|
|
||||||
// Only update caret position if the input method is enabled and the caret
|
// Only update caret position if the input method is enabled and the caret
|
||||||
// position has changed.
|
// position has changed.
|
||||||
if (type == WebKit::WebTextInputTypeText && caret_bounds != caret_bounds_) {
|
if (type != WebKit::WebTextInputTypeNone && caret_bounds != caret_bounds_) {
|
||||||
caret_bounds_ = caret_bounds;
|
caret_bounds_ = caret_bounds;
|
||||||
ime_input_.UpdateCaretRect(view_, caret_bounds);
|
ime_input_.UpdateCaretRect(view_, caret_bounds);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue