Synthesize proper keyIdentifier for devtools protocol key events.
commit387858480cc7aec410fe8c776ccc15abfaf873ae
authormharanczyk <mharanczyk@opera.com>
Wed, 27 May 2015 07:53:48 +0000 (27 00:53 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 27 May 2015 07:54:23 +0000 (27 07:54 +0000)
tree05b2038c375096ba8378f5be0c5193e9166575fa
parent91cb231942efd931eb43b463f890d5f2f4671f95
Synthesize proper keyIdentifier for devtools protocol key events.

When bug 472077 moved devtools protocol key handling to browser one part
of code that sythesized keyIdentifier was lost (it was prevoiusly
handled in InspectorInputClient::dispatchKeyEvent and removed in
https://codereview.chromium.org/1063653002/patch/40001/50004). Restore
that functionality else sending some key events (like enter) is not
handled correctly.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#331546}
content/browser/devtools/protocol/devtools_protocol_browsertest.cc
content/browser/devtools/protocol/input_handler.cc