mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-27 09:41:17 +01:00
Enable IME for all text input types (issue #765).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1009 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
53d8a95c98
commit
f1ebd3561f
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user