Closed
Bug 293837
Opened 20 years ago
Closed 14 years ago
cannot catch Ctrl+Shift+key in onkeydown handler
Categories
(Core :: DOM: Events, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: julien.lecomte, Unassigned)
References
()
Details
(Keywords: testcase)
Attachments
(1 file)
315 bytes,
text/html
|
Details |
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
Test case:
<html>
<head>
<script language="javascript">
document.onkeydown = function( evt ) {
if ( evt.keyCode == 65 ) { // "A" key
alert( "evt.ctrlKey = " + evt.ctrlKey );
alert( "evt.shiftKey = " + evt.shiftKey );
}
}
</script>
</head>
<body></body>
</html>
Firefox 1.0.3 on Windows: The following keystrokes work: A, Ctrl+A, Shift+A
and Ctrl+Shift+A
Firefox 1.0.3 on Linux: The following keystrokes work: A, Ctrl+A and Shift+A
Problem: Firefox 1.0.3 on Linux: A Ctrl+Shift+<any key> keystroke cannot be
caught in the onkeydown handler. It can be caught in the onkeyup handler
though...
Reproducible: Always
Comment 1•20 years ago
|
||
Reporter | ||
Comment 2•20 years ago
|
||
This seems to be a duplicate of 295095. Please confirm and advise.
Comment 3•19 years ago
|
||
No this is not a dupe of that.
Does it happen with 1.5 beta as well?
Assignee: nobody → events
Component: General → DOM: Events
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → 1.7 Branch
Comment 4•17 years ago
|
||
Mozilla 1.7 is obsolete now. Anyone seeing this on a current build (and which one)?
Assignee: events → nobody
QA Contact: ian → events
Comment 5•14 years ago
|
||
I cannot reproduce this bug on Fx4b8pre.
-> WFM.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•