Open Bug 1922841 Opened 1 month ago Updated 1 day ago

macOS Sequoia context menu keyboard shortcut synthesizes click in the middle of the window

Categories

(Core :: Widget: Cocoa, defect, P3)

Firefox 131
defect

Tracking

()

UNCONFIRMED

People

(Reporter: jellinek, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0

Steps to reproduce:

  1. Navigate to a page in Firefox (e.g. this page)
  2. Press Ctrl-Enter to open the context menu (this is a new system keyboard shortcut in Sequoia: https://developer.apple.com/videos/play/wwdc2024/10124/?time=524)
  3. Dismiss the context menu
  4. Scroll down until an element with its own context menu, like a textarea or link, is exactly in the middle of the viewport; press Ctrl-Enter again
  5. Focus a form field; press Ctrl-Enter again

Actual results:

A right-click event is synthesized in the middle of the viewport on Ctrl-Enter. The right-click event is always in the middle of the viewport, no matter which element is focused, where the mouse is, or whether browser chrome (like the URL bar) is focused.

The original Enter key event also goes through, so forms get submitted in addition to the context menu opening.

Expected results:

See first-party apps like Notes. Context menu should open on the focused element, not the middle of the page. If a form field is focused, the context menu should open at the cursor. If a listbox is focused, the context menu should open at the selected element.

Ctrl-Enter should not cause default Enter key behavior.

The severity field is not set for this bug.
:spohl, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(spohl.mozilla.bugs)
Severity: -- → S3
Flags: needinfo?(spohl.mozilla.bugs)
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.