Skip to content

Unable to select text with screen reader #4656

@JasonXJ

Description

@JasonXJ

Details

  • OS version: ChromeOS (but this is probably not limit to ChromeOS)
  • xterm.js version: ToT

The .xterm-accessibility-tree element (and everything else within .xterm) has the css variable user-select set to none, so ChromeVox (and probably the screenreader on other platforms) is only able to select the row element but not the text inside it. The user is also not able to copy the text because of this.

I think the solution to this is:

  1. override user-select for .xterm-accessibility-tree so that the text is selectable. We will also use css to hide the browser selection highlight.
  2. Monitor the selectionchange event for the element, and sync the selection to the terminal (e.g. via term.select())

What do you think about this?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions