On MacOS, when focus is in a contenteditable element inside of a shadow dom, keyboard shortcuts are being incorrectly handled by the browser
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
People
(Reporter: me, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/116.0
Steps to reproduce:
On macOS:
Create a shadow dom.
Create a contenteditable element inside of the shadow dom.
Set focus inside of the contenteditable element.
Press Cmd+Left.
Reproduction here: https://tehshrike.github.io/firefox-keyboard-shortcuts-in-contenteditable-inside-shadow-dom/
Actual results:
Firefox reacts to the Cmd+Left keypress and navigates to the previous location in the browser history.
Expected results:
The cursor should have moved to the beginning of the line.
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: UI Events & Focus Handling' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
My employer is shipping an app this year that will include a text editor inside of a shadow dom element, unless this bug is fixed, that app will not work well in Firefox by default.
Comment 4•6 months ago
|
||
I couldn't reproduce this on Win11.
I can no longer reproduce this on macOS as of Firefox 122.0.1.
Comment 6•4 months ago
|
||
(In reply to TehShrike from comment #5)
I can no longer reproduce this on macOS as of Firefox 122.0.1.
Thank you for getting back here! Glad to know the issue is fixed on your end.
Description
•