| Index: views/ime/input_method_ibus.cc
|
| diff --git a/views/ime/input_method_ibus.cc b/views/ime/input_method_ibus.cc
|
| index 406554e01738b241c2fde4492c5afa0abd3f8188..b314eccf031ade82d8f236a43c131126c372371c 100644
|
| --- a/views/ime/input_method_ibus.cc
|
| +++ b/views/ime/input_method_ibus.cc
|
| @@ -309,7 +309,7 @@ void InputMethodIBus::Init(Widget* widget) {
|
| CreateContext();
|
| }
|
|
|
| -void InputMethodIBus::DispatchKeyEvent(const KeyEvent& key) {
|
| +bool InputMethodIBus::OnKeyEvent(const KeyEvent& key) {
|
| DCHECK(key.type() == ui::ET_KEY_PRESSED || key.type() == ui::ET_KEY_RELEASED);
|
| DCHECK(widget_focused());
|
|
|
| @@ -321,11 +321,11 @@ void InputMethodIBus::DispatchKeyEvent(const KeyEvent& key) {
|
| // enabled, so that ibus can have a chance to enable the |context_|.
|
| if (!(context_focused_ || fake_context_) ||
|
| GetTextInputType() == ui::TEXT_INPUT_TYPE_PASSWORD) {
|
| - if (key.type() == ui::ET_KEY_PRESSED)
|
| + if (key.type() == ui::ET_KEY_PRESSED) {
|
| ProcessUnfilteredKeyPressEvent(key);
|
| - else
|
| - DispatchKeyEventPostIME(key);
|
| - return;
|
| + return true;
|
| + }
|
| + return false;
|
| }
|
|
|
| guint32 ibus_keyval = 0;
|
| @@ -360,6 +360,8 @@ void InputMethodIBus::DispatchKeyEvent(const KeyEvent& key) {
|
| // We don't want to suppress the result generated by this key event, but it
|
| // may cause problem. See comment in ResetContext() method.
|
| suppress_next_result_ = false;
|
| +
|
| + return true;
|
| }
|
|
|
| void InputMethodIBus::OnTextInputTypeChanged(View* view) {
|
|
|