Closed Bug 1865685 Opened 2 years ago Closed 2 years ago

Consider allowing macOS-provided menu items to execute their action without propagating the event to our keyDown: handler

Categories

(Core :: Widget: Cocoa, task)

task

Tracking

()

RESOLVED WONTFIX

People

(Reporter: spohl, Assigned: spohl)

References

(Blocks 1 open bug)

Details

Attachments

(1 obsolete file)

macOS adds some menu items to our menu bar, such as the emoji picker. The shortcuts for these menu items may not work properly, since we do not have an internal representation of these menu items. One potential solution is to allow these menu items to execute their actions and stop the propagation of the event. This would be a departure from our current strategy where all of these events go through our keyDown: handler, i.e. TextInputHandler::HandleKeyDownEvent. I'm going to attach a patch for discussion. This patch fixes a variety of bugs, such as bug 1855346, bug 1833923, bug 1806374 and others. It does not, however, address bug 1333781.

Blocks: 1833923
Attachment #9364533 - Attachment is obsolete: true

I'm going to abandon this bug in favor of a better patch that I will be posting to bug 1855346 to address the Ctrl+Cmd+Spacebar case. I will file a separate bug to start respecting the Fn+e shortcuts (and similar Fn shortcuts) and we will want to land both at the same time to support current and legacy shortcuts for the emoji picker and other menu items.

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
Type: defect → task
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: