Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable activating a control with cursor routing on any of its braille cells (#7447) #11922

Merged
merged 1 commit into from
Jan 20, 2021

Conversation

JulienCochuyt
Copy link
Collaborator

Link to issue number:

Fixes #7447

Summary of the issue:

In browse mode, a control can be activated with braille cursor routing only at the positions of its text, but not at the positions of eg. its role descriptor.
That is, cursor routing on "lnk" for a link moves the cursor on first press to the link text but does not activate on second press.
It is especially disturbing on check-boxes with no labels - as often found as line selectors in tables: Despite braille rendering a check-box shape, a single cell can be used to activate, located one space after "chk"… while most new comers would expect to be able to click within the rendered check-box shape.

Description of how this pull request fixes the issue:

In TextInfoRegion.routeTo do not compare the routing cell with the cursor cell, but rather the underlying TextInfo offsets.

Testing performed:

Known issues with pull request:

The solution proposed here maybe widens the scope a bit too much:
Considering a check-box with no label at the start of a table cell, cursor routing on the row/column braille indications also activates the check-box.

Change log entry:

Section: Changes

In browse mode, controls can now be activated with braille cursor routing on their descriptor (ie. "lnk" for a link). This is especially useful for activating eg. check-boxes with no labels.

@michaelDCurran michaelDCurran merged commit 33cd507 into nvaccess:master Jan 20, 2021
@nvaccessAuto nvaccessAuto added this to the 2021.1 milestone Jan 20, 2021
@JulienCochuyt JulienCochuyt deleted the i7447-cursorRouting branch January 21, 2021 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Double pressing cursor routing button on "lnk" in browse mode doesn't activate it
3 participants