Use EventDispatcher instead of InputMethod to dispatch the simulated key events.
commite7eeac5b4f9ddf31332e4c06f87fb8edfe9f4ef5
authorshuchen <shuchen@chromium.org>
Fri, 21 Aug 2015 01:52:45 +0000 (20 18:52 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 21 Aug 2015 01:53:22 +0000 (21 01:53 +0000)
tree100f5ba391222104f0a12e7073041727893499b0
parent67bb2e239516d1cba02a28b418be94327660dab6
Use EventDispatcher instead of InputMethod to dispatch the simulated key events.

This reverts the changes of InputMethodEngine in the cl
https://codereview.chromium.org/1155013005.
Later in the cl https://codereview.chromium.org/1209663002, the
InputMethod became an EventHandler which is not the first guy to handle
the key events. So dispatching simulated key events to InputMethod
directly will skip the key event handling before InputMethod, such as
accelarator handler.

BUG=522782,521434
TEST=Verified the bugs not repro on local sandbox.

Review URL: https://codereview.chromium.org/1298143006

Cr-Commit-Position: refs/heads/master@{#344649}
chrome/browser/chromeos/input_method/input_method_engine.cc