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.
Broke between r57948 and r57951. I guess http://trac.webkit.org/changeset/57951
<rdar://problem/8119979>
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.