Chromium Code Reviews| Index: views/ime/input_method_ibus.cc |
| diff --git a/views/ime/input_method_ibus.cc b/views/ime/input_method_ibus.cc |
| index 958e3dfdcfb0aa9c6e40d5cbfc4848e5507e886f..10cb7215945d04223222e10da34757945f8ff50d 100644 |
| --- a/views/ime/input_method_ibus.cc |
| +++ b/views/ime/input_method_ibus.cc |
| @@ -369,6 +369,7 @@ void InputMethodIBus::DispatchKeyEvent(const KeyEvent& key) { |
| } |
| void InputMethodIBus::OnTextInputTypeChanged(View* view) { |
| + InputMethodBase::OnTextInputTypeChanged(view); |
| if (context_ && IsViewFocused(view)) { |
| ResetContext(); |
| UpdateContextFocusState(); |
| @@ -413,7 +414,9 @@ base::i18n::TextDirection InputMethodIBus::GetInputTextDirection() { |
| } |
| bool InputMethodIBus::IsActive() { |
| - return context_ != NULL; |
| + // We always need to receive TextInputTypeChanged signal, |
| + // so just return true here. |
|
bryeung
2011/06/22 01:56:02
This seems dangerous. Is there no way to ensure t
|
| + return true; |
| } |
| // static |