Closed Bug 1802465 Opened 2 years ago Closed 2 years ago

Missing keyup event with Command key on macOS

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

Firefox 105
Desktop
macOS
defect

Tracking

()

RESOLVED DUPLICATE of bug 1299553
Tracking Status
firefox-esr102 --- wontfix
firefox107 --- wontfix
firefox108 --- wontfix
firefox109 --- wontfix

People

(Reporter: ossman, Unassigned)

References

Details

Attachments

(1 file)

Steps to reproduce:

  1. Set up event handlers for keydown and keyup
  2. Press and release Cmd+.

Actual results:

I got keydown events for Cmd (Meta) and ., followed by keyup event for Cmd (Meta). There was no keyup for ., even though it was released.

Expected results:

I should have got four events; two keydown and two keyup.

Screenshot showing test run using https://w3c.github.io/uievents/tools/key-event-viewer.html.

Problem originally reported to noVNC here:

https://github.com/novnc/noVNC/issues/1695

We've been forced to implement a workaround where we pretend the key is immediately released. This, of course, makes it impossible to do any interaction where it is important to determine that the key is held down.

Also note that this is not a system-level issue (like CapsLock), as we know from TigerVNC that these events are sent just fine to the applications.

One guess is that the shortcut code gobbles up all these events, regardless if there is a shortcut bound to that key combination or not.

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0

Hi,

I am able to reproduce the issue in release 107, beta 108.0b7 the latest nightly 109.0a1 (2022-11-29) on macOS 10.15.
See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1299553

Thanks for the report.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Has STR: --- → yes
Component: Untriaged → DOM: UI Events & Focus Handling
Ever confirmed: true
OS: Unspecified → macOS
Product: Firefox → Core
Hardware: Unspecified → Desktop
See Also: → 1299553
Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1299553
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: