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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user