# CKEditor Autocomplete Accessibility: Cannot scroll the autocomplete list

**URL:** <https://forum.xwiki.org/t/ckeditor-autocomplete-accessibility-cannot-scroll-the-autocomplete-list/16034>\
**Category:** Development\
**Tags:** brainstorming\
**Created:** [December 3, 2024, 3:27pm UTC](https://forum.xwiki.org/t/ckeditor-autocomplete-accessibility-cannot-scroll-the-autocomplete-list/16034 "2024-12-03T15:27:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CharpentierLucas](https://forum.xwiki.org/user_avatar/forum.xwiki.org/charpentierlucas/32/4830_2.png) [@CharpentierLucas](https://forum.xwiki.org/u/CharpentierLucas)\
**Post date:** [December 3, 2024, 3:27pm UTC](https://forum.xwiki.org/t/ckeditor-autocomplete-accessibility-cannot-scroll-the-autocomplete-list/16034/1 "2024-12-03T15:27:22Z")

</div>

Hello!

## Context

Our Continuous Integration automated accessibility tests report in one test that there is no way for keyboard users to scroll down the dropdown that’s shown on CKEditor autocomplete, in the context of this test, this is the Quick Action autocomplete. Here is what it looks like:

 ![image](https://forum.xwiki.org/uploads/default/original/2X/d/d3cad8c388348a700ff49cbc1452acae68199cd1.png)  
It’s impossible to get control of the handle here with your keyboard and scroll quickly through the list. Pressing Tab (action which should be focusing the scolling bar) commits the autocomplete selection.

With arrow keys, one can already scroll through the items pretty quickly.  
Jira issue: [XWIKI-22578: Scrollable region should be keyboard accessible](https://jira.xwiki.org/browse/XWIKI-22578)

## Possible solutions

1. Since users can use arrow keys to pretty much do the same thing, ignore this dropdown in the tests. There would be no failure anymore, and the situation would stay the same for all users.
2. Remove the default behaviour of CKeditor-Autocomplete to commit the suggestion on `Tab` AND add a `Tab` listener to set the focus on the dropdown. Pro: This solves the issue with an actual accessibility improvement. Con: This could deteriorate the standard user experience because now pressing `Tab` would not commit the active suggestion.

## Opinion

I’m not sure what to go for. Technically both are possible and quite light to implement. If there was not a usability drawback, I’d implement option 2. because it makes the situation a bit better for screen readers and makes it clear that there’s no violation of WCAG here. However, I would want to check with the community if changing the behavior of this element on `Tab` is okay before going further with implementation.

## Conclusion

As a user of XWiki and quick actions, how do you usually commit your selection of action (`Enter` or `Tab`) ? Do you think we should go with option 1 or 2? Is there a third solution that I failed to consider when analysing the issue?

Thank you in advance for your help on this topic!  
Lucas C.

---

<div class="post-metadata">

**Author:** ![Simpel](https://forum.xwiki.org/user_avatar/forum.xwiki.org/simpel/32/3655_2.png) [@Simpel](https://forum.xwiki.org/u/Simpel)\
**Post date:** [December 4, 2024, 7:58am UTC](https://forum.xwiki.org/t/ckeditor-autocomplete-accessibility-cannot-scroll-the-autocomplete-list/16034/2 "2024-12-04T07:58:27Z")

</div>

Hi.

I don’t get it. I can scroll through the opened list with up and down keys and can confirm with both enter or tab.

I would think that this is good behaviour.  
Regards Simpel

---

<div class="post-metadata">

**Author:** ![CharpentierLucas](https://forum.xwiki.org/user_avatar/forum.xwiki.org/charpentierlucas/32/4830_2.png) [@CharpentierLucas](https://forum.xwiki.org/u/CharpentierLucas)\
**Post date:** [November 18, 2026, 2:06pm UTC](https://forum.xwiki.org/t/ckeditor-autocomplete-accessibility-cannot-scroll-the-autocomplete-list/16034/3 "2026-11-18T14:06:35Z")

</div>

This was not decided: there was only one answer, which found the current behavior fine (arrow keys to move, `Enter` or `Tab` to commit).

In the meantime, the CI accessibility tests stopped reporting this violation, so [XWIKI-22578](https://jira.xwiki.org/browse/XWIKI-22578) was closed as Cannot Reproduce in January 2025, without changing the `Tab` behavior. It was only a problem for the automated tests, since keyboard users can already go through the list with the arrow keys.

Related and still open: [XWIKI-22493](https://jira.xwiki.org/browse/XWIKI-22493), the quick action dropdown is not read properly by screen readers when navigated.

Since CKEditor 4 is planned to be replaced by BlockNote ([Blocknote as the next rich editor for XWiki](https://forum.xwiki.org/t/blocknote-as-the-next-rich-editor-for-xwiki/18087)), I don’t plan to work further on this. If the violation comes back, or someone has a strong opinion on the `Tab` behavior, feel free to answer here.
