Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Issue 100533003: Fix CodeForKeyboardEvent to properly calculate the scancode. (Closed)

Created:
7 years ago by garykac
Modified:
7 years ago
Reviewers:
Wez
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Fix CodeForKeyboardEvent to properly calculate the scancode. Current code just uses the key_event.nativeKeyCode which is copied from the Windows' lParam. The proper scancode needs to be shifted and masked out of the lParam (as is done for UsbKeyCodeForKeyboardEvent. BUG=325015 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238362

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M content/renderer/pepper/usb_key_code_conversion_win.cc View 1 chunk +6 lines, -1 line 1 comment Download

Messages

Total messages: 6 (0 generated)
garykac
I haven't tested this on Windows yet (will do so tomorrow), but this looks like ...
7 years ago (2013-12-03 02:43:37 UTC) #1
Wez
Why would this call all keys to be treated as Escape, though? That suggests we're ...
7 years ago (2013-12-03 03:02:57 UTC) #2
garykac
On 2013/12/03 03:02:57, Wez wrote: > Why would this call all keys to be treated ...
7 years ago (2013-12-03 03:22:09 UTC) #3
Wez
lgtm
7 years ago (2013-12-03 05:08:38 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/garykac@chromium.org/100533003/1
7 years ago (2013-12-03 05:09:36 UTC) #5
commit-bot: I haz the power
7 years ago (2013-12-03 12:01:55 UTC) #6
Message was sent while issue was closed.
Change committed as 238362

Powered by Google App Engine
This is Rietveld 408576698