| Index: views/ime/mock_input_method.cc
|
| diff --git a/views/ime/mock_input_method.cc b/views/ime/mock_input_method.cc
|
| index 8864552304f421ed34543f243e8f40cec5ac8220..22e2dd1eb4282f668d0d1042a539a3aaebee6f40 100644
|
| --- a/views/ime/mock_input_method.cc
|
| +++ b/views/ime/mock_input_method.cc
|
| @@ -30,7 +30,7 @@ void MockInputMethod::Init(Widget* widget) {
|
| InputMethodBase::Init(widget);
|
| }
|
|
|
| -void MockInputMethod::DispatchKeyEvent(const KeyEvent& key) {
|
| +bool MockInputMethod::OnKeyEvent(const KeyEvent& key) {
|
| bool handled = (composition_changed_ || result_text_.length()) &&
|
| !IsTextInputTypeNone();
|
|
|
| @@ -43,7 +43,7 @@ void MockInputMethod::DispatchKeyEvent(const KeyEvent& key) {
|
| }
|
|
|
| if (focus_changed_)
|
| - return;
|
| + return true;
|
|
|
| TextInputClient* client = GetTextInputClient();
|
| if (client) {
|
| @@ -63,6 +63,7 @@ void MockInputMethod::DispatchKeyEvent(const KeyEvent& key) {
|
| }
|
|
|
| ClearResult();
|
| + return true;
|
| }
|
|
|
| void MockInputMethod::OnTextInputTypeChanged(View* view) {
|
|
|