Open Bug 1850454 Opened 2 years ago Updated 2 years ago

One specific accesskey "n", doesn't work on macOS

Categories

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

Firefox 115
Unspecified
macOS
defect

Tracking

()

ASSIGNED

People

(Reporter: 52qtuqm9, Assigned: masayuki)

Details

My add-on has an "N" access key for a button which works fine in Thunderbird on Linux but does absolutely nothing on macOS.

Another button in the same window has an access key "O" which works fine on both platforms. The access keys for the two buttons are configured exactly the same way.

To be clear, I know that access keys on Linux use different modifiers from macOS. I am using the correct modifier keys for each platform. The "N" works on Linux and not macOS; the "O" works on both.

I'm not the only person having this problem. Here's someone who discovered the exact same issue with Firefox, so it's definitely a problem on both Thunderbird and FIrefox: https://stackoverflow.com/questions/74787540/why-does-this-one-single-accesskey-not-work-on-firefox

I'm stymied here.

Status: NEW → UNCONFIRMED
Ever confirmed: false

Interesting: when I trap the key event in my add-on and log it, I see that when I hold down ctrl and option and hit the n key on macOS, the event.key property of the resulting event says "Dead".

Thank you for the report, and synthesizing Dead keydown is a good point. At that time, keypress event is not dispatched even internally. However, our accesskey handler listens to keypress events. Therefore, it won't work.

Assignee: nobody → masayuki
Severity: -- → S3
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.