diff options
author | fsamuel@chromium.org <fsamuel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-13 23:44:58 +0000 |
---|---|---|
committer | fsamuel@chromium.org <fsamuel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-13 23:44:58 +0000 |
commit | 95c49832a65bf3258f6b234c0cb834f7207c3ac4 (patch) | |
tree | 8b69727dfc40fcfd7d0df38f9b327b8b4e1b9d0c /webkit/plugins/ppapi/event_conversion.cc | |
parent | 9bd6cd7d9487db53b2a918fa042c8e1f6357d8c4 (diff) | |
download | chromium_src-95c49832a65bf3258f6b234c0cb834f7207c3ac4.zip chromium_src-95c49832a65bf3258f6b234c0cb834f7207c3ac4.tar.gz chromium_src-95c49832a65bf3258f6b234c0cb834f7207c3ac4.tar.bz2 |
Browser Plugin -- Populate WebKeyboardEvent's keyIdentifier
keyIdentifier is used by EventHandler::defaultKeyboardEventHandler to determine whether a given key is a Tab or not, among other things. Thus, we need to make sure this field is populated when we translate an InputEventData into a WebKeyboardEvent.
BUG=none
TEST=manually
Review URL: https://chromiumcodereview.appspot.com/10544128
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142025 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/ppapi/event_conversion.cc')
-rw-r--r-- | webkit/plugins/ppapi/event_conversion.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/webkit/plugins/ppapi/event_conversion.cc b/webkit/plugins/ppapi/event_conversion.cc index 68a9f6e..fa50d8f 100644 --- a/webkit/plugins/ppapi/event_conversion.cc +++ b/webkit/plugins/ppapi/event_conversion.cc @@ -217,6 +217,7 @@ WebKeyboardEvent* BuildKeyEvent(const InputEventData& event) { key_event->timeStampSeconds = PPTimeTicksToEventTime(event.event_time_stamp); key_event->modifiers = event.event_modifiers; key_event->windowsKeyCode = event.key_code; + key_event->setKeyIdentifierFromWindowsKeyCode(); return key_event; } |