Ctrl key doesn't fire keydown (and keyup) event

UNCONFIRMED
Unassigned

Status

()

Core
DOM: Events
UNCONFIRMED
12 years ago
9 years ago

People

(Reporter: Miroslav Juhos, Unassigned)

Tracking

({testcase})

Trunk
PowerPC
Mac OS X
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

12 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3

Key events aren't fired after pressing Ctrl key on MacOs, but they are fired on Windows.

Reproducible: Always

Steps to Reproduce:
1. Open test case on FireFox 1.5 on MacOs
2. Pres Ctrl key


Actual Results:  
Nothing

Expected Results:  
Text ctrl will be displayed - same behavior as on Windows

Test case:
<html>
  <head>
    <script>
      onkeydown = function(event) {
        if (event.ctrlKey) {
          document.getElementById('log').innerHTML += 'ctrl ' ;
         }
       }
     </script>
  </head>
  <body>
   <div id=log></div>
  </body>
</html>
(Reporter)

Comment 1

12 years ago
Created attachment 222011 [details]
Test case
(Reporter)

Updated

12 years ago
Keywords: testcase
attachment 94030 [details] also serves as a (slightly less obscure) testcase: I get no ctrl/option/cmd keydowns or keyups with a Mac trunk build.
Assignee: nobody → events
Component: General → DOM: Events
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk

Comment 3

12 years ago
related to bug 314870 ? Bug 314870 attachment 8 [details] is a nice testcase.

Comment 4

12 years ago
sounds dupe of bug 44259.
Since bug 44259 comment 18 says it's specifically about the keycode which is sent when a keydown event is fired, and that the event fires, while this is about the events for different keys not firing, it certainly doesn't sound like a dupe to me.

Comment 6

10 years ago
The following looks like it is a manifestation of this bug:

Context: Web-based game with many keyboard shortcuts
Symptom: Cmd-{letter} is passed through to the game as {letter}

Does not occur on the same website when accessed with Windows Firefox.

I would classify this as major. It severely impacts functionality when Cmd-T to open a new tab, instead initiates Travel or Teleport.

If the web page is not set up to use {letter} as a shortcut, Cmd-{letter} functions normally.

This is the site where the behaviour was observed:
http://www.improbableisland.com/home.php
Assignee: events → nobody
QA Contact: ian → events
You need to log in before you can comment on or make changes to this bug.