fix(richtext-lexical): allow any priority of FOCUS_COMMAND (#10128)

This revert patch behavior on indent in Firefox, in order to fix #10049
This commit is contained in:
Germán Jabloñski
2025-01-02 14:16:18 -03:00
committed by GitHub
parent 510968f65d
commit 018c1933b0
4 changed files with 5 additions and 69 deletions

View File

@@ -784,11 +784,8 @@ describe('lexicalMain', () => {
})
})
/**
* When the escape key is pressed, Firefox resets the active element to the beginning of the page instead of staying with the editor.
* By applying a keydown listener when the escape key is pressed, we can programatically focus the previous element if shift+tab is pressed.
*/
test('ensure escape key can be used to move focus away from editor', async () => {
// NOTE: It's not worth it right now. Maybe later. See https://github.com/payloadcms/payload/issues/10049
test.skip('ensure escape key can be used to move focus away from editor', async () => {
await navigateToLexicalFields()
const richTextField = page.locator('.rich-text-lexical').first()