[Webkit-unassigned] [Bug 110670] New: keydown generated instead of keyup when both of a pair of modifier keys are pressed and one is released
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 22 17:34:59 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=110670
Summary: keydown generated instead of keyup when both of a pair
of modifier keys are pressed and one is released
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh Intel
OS/Version: Mac OS X 10.8
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Event Handling
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: chris_odonnell at me.com
With each set of paired modifier keys, when one of the keys is pressed, and then the other is pressed, and then either is released, a third keydown event is generated instead of the expected keyup. When the remaining key is released, a keyup event is generated as expected.
The bug doesn't have to do with multiple physical keys sharing one numeric code (as is the case with each of option and shift), because command, which has distinct numeric codes for left and right, has the same problem.
This bug is present in:
- Chrome Canary 27.0.1420.0 (latest at time of filing)
- Chrome 24.0.1312.57
- WebKit Nightly 6.0.2 (8536.26.17, 537+) (latest at time of filing)
- Safari 6.0.2 (8536.26.17)
To reproduce, load an HTML file with these contents:
<!doctype html>
<html>
<head>
<script>
var log_type = function (e) { console.log(e.type, e.which); };
window.onkeydown = log_type;
window.onkeyup = log_type;
window.onkeypress = log_type;
</script>
</head>
</html>
In one of any of the above browser builds, open the Inspector's Console ("Log" in Safari), and type a key sequence that meets these rules:
1. Choose shift, option, or command.
2. Press and hold down both physical keys in that pair.
3. Release one of them.
A third keydown event is produced, instead of the correct keyup event.
4. Release the other.
A keyup event is produced as expected.
--
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