summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/views/ime/input_method_bridge.cc5
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);