diff options
Diffstat (limited to 'ui/views')
-rw-r--r-- | ui/views/ime/input_method_bridge.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/views/ime/input_method_bridge.cc b/ui/views/ime/input_method_bridge.cc index 3d9a458..34f6e1b 100644 --- a/ui/views/ime/input_method_bridge.cc +++ b/ui/views/ime/input_method_bridge.cc @@ -45,7 +45,10 @@ void InputMethodBridge::OnFocus() { } void InputMethodBridge::OnBlur() { - ConfirmCompositionText(); + if (HasCompositionText()) { + ConfirmCompositionText(); + host_->CancelComposition(this); + } if (host_->GetTextInputClient() == this) host_->SetFocusedTextInputClient(NULL); |