Bug 41016 - REGRESSION: keycode for "N" changes when command+option are down
Summary: REGRESSION: keycode for "N" changes when command+option are down
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac All
: P1 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2010-06-22 15:39 PDT by Sidney San Martín
Modified: 2010-06-22 16:03 PDT (History)
2 users (show)

See Also:


Attachments
Example. Warning: eats key presses. (523 bytes, text/html)
2010-06-22 15:39 PDT, Sidney San Martín
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sidney San Martín 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.
Comment 1 Simon Fraser (smfr) 2010-06-22 15:47:12 PDT
Broke between r57948 and r57951. I guess http://trac.webkit.org/changeset/57951
Comment 2 Simon Fraser (smfr) 2010-06-22 15:48:44 PDT
<rdar://problem/8119979>
Comment 3 Alexey Proskuryakov 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.