[Webkit-unassigned] [Bug 67757] New: event.keyCode not correct for onkeypress handler with command and shift modifiers
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 7 20:42:54 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=67757
Summary: event.keyCode not correct for onkeypress handler with
command and shift modifiers
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh Intel
OS/Version: Mac OS X 10.7
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: cerimorgan at yahoo.com
Created an attachment (id=106695)
--> (https://bugs.webkit.org/attachment.cgi?id=106695&action=review)
Test case that can be used to see event.keyCode for various keypresses
When examining the event.keyCode in an onkeypress event handler, the shift key is ignored when the command key is also pressed. For example, here are the keyCode values I get when hitting the following keystrokes:
a - 97
shift a - 65
command a - 97
command shift a - 97
For the last keystroke, I would expect to get a keyCode of 65. The modifiers are correctly set on the event object, but due to different keyboard layouts across the world, it's dangerous to assume, for example, that command 7 results in an ampersand.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list