Extract from the discussion on this topic on the live chat (quick and dirty copy*paste for the sake of leaving traces):
Michael Hamann
Lucas Charpentier: Regarding CKEditor accessibility, I've just tried using tab to focus the toolbar of CKEditor and I couldn't focus it. Also, when you're inside a list, Shift+Tab outdents the list instead of just leaving the editor.
Michael Hamann
Ah, it seems that CKEditor has specific shortcuts to focus the toolbar...
Lucas Charpentier
Michael Hamann
Lucas Charpentier: Regarding CKEditor accessibility, I've just tried using tab to focus the toolbar of CKEditor and I couldn't focus it. Also, when you're inside a list, Shift+Tab outdents the list instead of just leaving the editor.
We have an alternative for all the features in the toolbar with quick actions
The shift tab behaviour is expected, we can exit the list pretty quickly with arrows or enters.
I don't have precise sources, but these should be more clearly defined in ATAG
Michael Hamann
When you press Alt + F10, focus is in the toolbar.
Lucas Charpentier
Michael Hamann
When you press Alt + F10, focus is in the toolbar.
Maybe we should have a specific link in our CKEditor documentation that points to their doc about shortcuts (don't know if we ahve one already).
Michael Hamann
I don't think quick actions are enough, for example monospace formatting (Styles -> Typewriter) is not available in the quick actions. And you also cannot apply a quick action to a selection.
Lucas Charpentier
In reply to
Michael Hamann
Lucas Charpentier
Maybe we should have a specific link in our CKEditor documentation that points to their doc about shortcuts (don't know if we ahve one already).
https://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration
Michael Hamann
In reply to
Michael Hamann
Lucas Charpentier
Maybe we should have a specific link in our CKEditor documentation that points to their doc about shortcuts (don't know if we ahve one already).
We have one. But I think it would be important to have a hint about Alt + 0 somewhere relatively prominent.
I mean not in the documentation but in XWiki itself.
Lucas Charpentier
👍️ I'll create an improvement ticket
It could even be a .sr-only hint to not disturb any visual user
Michael Hamann
We could also have an element that is in tab order before CKEditor that is focusable and becomes visible on focus that explains the shortcut.
Such that it is not only visible for screen readers but also for users navigating using the keyboard.
(No idea if there is any better solution for this.)
It would basically be in tab order where you would have expected the toolbar to be.
Lucas Charpentier
Michael Hamann
(No idea if there is any better solution for this.)
Another solution would be to use just the aria-description on some block containing the editor, but this wouldn't show anything on the screen
Michael Hamann
It would basically be in tab order where you would have expected the toolbar to be.
Sounds like a good idea 👍️