diff options
author | weitaosu@chromium.org <weitaosu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-20 07:14:57 +0000 |
---|---|---|
committer | weitaosu@chromium.org <weitaosu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-20 07:14:57 +0000 |
commit | 1b3fbdee193ecca5402f2232c01045440d5f50be (patch) | |
tree | 4e485cc58fbfce8247ba5cd19f490d599975b57e /cc/debug | |
parent | c9d7e79e8d58af4cb58b689948581bfb0f427d23 (diff) | |
download | chromium_src-1b3fbdee193ecca5402f2232c01045440d5f50be.zip chromium_src-1b3fbdee193ecca5402f2232c01045440d5f50be.tar.gz chromium_src-1b3fbdee193ecca5402f2232c01045440d5f50be.tar.bz2 |
Adding a key code map for easy keyboard event simulation.
BUG=134210
It is very tedious to simulate a key press event: one needs to find the |code| and |KeyboardCode| corresponding to the character being simulated and then call SimulateKeyPress. This change adds a key code map that translate a char to the corresponding codes assuming US keyboard layout.
This key code map is not suitable for simulating keyboard events originated from a keyboard with a non-us layout. But it is good for the majority of the test scenarios.
It makes keyboard event simulation in the chromoting browser_tests much simpler.
Review URL: https://chromiumcodereview.appspot.com/24233002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224317 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/debug')
0 files changed, 0 insertions, 0 deletions