Bug 41016

Summary: REGRESSION: keycode for "N" changes when command+option are down
Product: WebKit Reporter: Sidney San Martín <s+webkit>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ap, simon.fraser
Priority: P1 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: All   
Attachments:
Description Flags
Example. Warning: eats key presses. none

Sidney San Martín
Reported 2010-06-22 15:39:15 PDT
Created attachment 59423 [details] Example. Warning: eats key presses. In the r57958 nightly (covering r57791:57958), the key code for the N key onkeydown, when the command and option modifiers are down, changes from 78 (expected) to 192 (what?). r57958 is in the wild at this point, in Safari 5 at least.
Attachments
Example. Warning: eats key presses. (523 bytes, text/html)
2010-06-22 15:39 PDT, Sidney San Martín
no flags
Simon Fraser (smfr)
Comment 1 2010-06-22 15:47:12 PDT
Simon Fraser (smfr)
Comment 2 2010-06-22 15:48:44 PDT
Alexey Proskuryakov
Comment 3 2010-06-22 16:03:35 PDT
That's key code for tilde, the character one can see in Keyboard Viewer at N position with Cmd+Option depressed. It's usual location on Apple U.S. keyboards is to the left of '1' key. Per bug 37776, Cmd-key combos have to use translated character code to produce key codes, and not physical key code. But doing so makes us handle Cmd+Option+N as tilde. Cmd+Option+N should produce 'N' keyCode for U.S. keyboard, same for Dvorak-QWERTY keyboard, but 'B' keyCode for plain Dvorak keyboard. This is tricky, I'm not sure how to implement such a rule.
Note You need to log in before you can comment on or make changes to this bug.