| Index: chrome/browser/extensions/api/input/input.cc
|
| diff --git a/chrome/browser/extensions/api/input/input.cc b/chrome/browser/extensions/api/input/input.cc
|
| index e25f580a91769b0408b55a8ea944894a15b1d6ff..43c0e30145b200e16efae4e13cb4c22cfc0602fd 100644
|
| --- a/chrome/browser/extensions/api/input/input.cc
|
| +++ b/chrome/browser/extensions/api/input/input.cc
|
| @@ -122,9 +122,12 @@ bool SendKeyboardEventInputFunction::RunImpl() {
|
| views::InputMethod* ime = widget->GetInputMethod();
|
| if (ime) {
|
| ime->DispatchKeyEvent(event);
|
| - } else if (!widget->OnKeyEvent(event)) {
|
| - error_ = kKeyEventUnprocessedError;
|
| - return false;
|
| + } else {
|
| + widget->OnKeyEvent(&event);
|
| + if (event.handled()) {
|
| + error_ = kKeyEventUnprocessedError;
|
| + return false;
|
| + }
|
| }
|
|
|
| return true;
|
|
|