#109722CKEditor 5: Keyboard navigation broken in "Styles" dropdown grid (a11y)
Description
In TYPO3 v13.4, accessibility/keyboard navigation fails within the CKEditor 5 “Styles” dropdown (the one containing “Text styles” and “Block styles”).
While navigating the main toolbar works fine (via Alt+F10), it is not possible to navigate through the actual grid of styles inside the dropdown using the Arrow keys or the Tab key. The focus gets stuck, jumps out of the editor context entirely, or is simply swallowed by the backend.
Note: This works perfectly fine in the vanilla CKEditor 5 builds outside of TYPO3 (see CKEditor docs: https://ckeditor.com/docs/ckeditor5/latest/examples/builds-custom/full-featured-editor.html). Therefore, this seems to be a TYPO3 backend integration issue rather than an upstream CKEditor bug.
Steps to Reproduce:
- Open any backend record containing a Rich Text Editor (CKEditor 5) with the “Styles” plugin enabled.
- Focus the editor text area.
- Press Alt + F10 (or Option + F10 on Mac) to focus the CKEditor toolbar.
- Use the arrow keys to navigate to the “Styles” dropdown button and press Enter or Space to open it.
- Try to navigate through the opened styles grid (Text styles / Block styles) using the Arrow keys or the Tab key.
*Expected Behavior:*
The user should be able to navigate through the grid of styles using the arrow keys and select a style with Enter, as seen in vanilla CKEditor 5 examples.
*Actual Behavior:*
The focus fails to move properly between the style items. The user cannot select specific text or block styles using the keyboard.
*Possible Causes (Technical Hypothesis):*
The issue likely stems from a conflict between TYPO3’s global backend event listeners (FormEngine, Lit components) and the CKEditor’s internal FocusTracker.
Since the “Styles” dropdown renders as a more complex grouped UI panel (unlike the simpler paragraph/headings dropdown), TYPO3’s event interception (e.g., handling Tab/Arrow keys for global form navigation) might intercept the keystrokes before CKEditor can process them for its internal grid navigation. Shadow DOM boundaries might also cause the CKEditor FocusTracker to lose context.
Environment:
TYPO3 version: 13.4.27
Browser: Chrome v147.0.7727.116, Firefox v149.0, Edge v147.0.3912.86
OS: macOS
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] CKEditor 5: Keyboard navigation broken in "Styles" dropdown grid (a11y) Resolves: #109722 Releases: main