Skip to content

Completion and history popups: announce messages, completion types, and help #19533

Description

@gtritchie

Follow-ups to #6167 and #6168. Those fixes make screen readers announce the selected item in the completion popup and the console history popup. Several parts of these popups are still silent or incomplete for screen reader users.

1. Message-only popups aren't announced

When there's nothing to list, the popups show a text message in place of the list, and screen readers don't announce it:

  • Completion popup: "No matches" (ConsoleConstants.noMatchesLabel, via CompletionPopupPanel.showErrorMessage), plus progress and error messages from showProgress / showErrorMessage.
  • History popup: "(No matching commands)" (ConsoleConstants.noMatchingCommandsText, via CompletionListPopupPanel.setText).
  • Completion popup: "... Not all items shown" (ConsoleConstants.notAllItemsShownText), shown below a truncated list.

Expected: these are announced, e.g. through AriaLiveService, so a user who pressed Tab or Ctrl+Up knows why no list appeared, or that the list is incomplete.

2. Completion type isn't announced

Each completion's type (function, variable, data frame, argument, snippet, file, and so on) is shown only by an icon (QualifiedName.getIcon() in CompletionRequester). The icons are now hidden from screen readers because they had no alt text, so screen reader users don't hear the type.

Expected: the type is part of each option's accessible name or description, e.g. "cat, function, base".

3. Help tooltip isn't linked to the selected item

The help shown beside the completion list (HelpInfoPopupPanel: function signatures, argument descriptions, package and snippet help) isn't associated with the selected option, so screen readers don't read it.

Expected: the selected option references the help, e.g. with aria-describedby, or the help is announced when it changes. Ace's own completion popup does something similar: its options use aria-describedby="doc-tooltip".

Activity

  1. added
    autocompletion
    on Nov 9, 2026
  2. added theissue type on Nov 9, 2026
  3. self-assigned this
    on Nov 9, 2026
  4. gtritchie commented on Nov 10, 2026

    @gtritchie
    MemberAuthor

    The C/C++ completion popup (CppCompletionPopupMenu, made to announce its selection in #19549) has the same three gaps:

    1. Message-only popups: CppCompletionPopupMenu.setText shows messages such as "(No matches)" and server errors (from CppCompletionRequest.showCompletionPopup(String)) as an unselectable item, and they aren't announced.
    2. Completion type: each item's type is shown only by its icon (CppCompletion.getIcon()), which is now hidden from screen readers.
    3. Help tooltip: the signature tooltip (CppCompletionToolTip, shown for functions, variables, and snippets) isn't associated with the selected item.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

accessibilityautocompletionenhancement

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions