nvda icon indicating copy to clipboard operation
nvda copied to clipboard

braille: show selection in edit controls and documents when tethered to review

Open burmancomp opened this issue 6 months ago • 9 comments

Is your feature request related to a problem? Please describe.

Although "show selection" is enabled, NVDA does not show selection automatically in braille when braille is tethered to review. Fortunately issue #15844 and pr #15858 are available.

Describe the solution you'd like

NVDA should show selection automatically when "show selection" is enabled.

Describe alternatives you've considered

When within selection, ReviewTextInfoRegion._getSelection should return reading unit which braille is showing, review position otherwise. It should also save current selection for use in TextInfoRegion.update to handle the case where selection is partial reading unit.

update, nextLine and previousLine should be defined in ReviewTextInfoRegion to properly move to the next and previous line and to scroll forward and back, when selection is shown.

Additional context

"show selection" is available in braille settings when braille is tethered to review although selection is not shown in braille then.

burmancomp avatar Jan 01 '24 12:01 burmancomp

Yes. The selected area is shown correctly in your test version of NVDA, so even the TC buttons. Therefore this feature should be implemented in future versions of NVDA.

Jykke67 avatar Jan 03 '24 20:01 Jykke67

This would be a very useful feature in future releases of NVDA. I tried a test version compiled by @burmancomp and it seems to work. I always use Tether Braille to review setting and now it is possible to select text areas and see what is selected. The touch cursor keys work correctly. I can also navigate out of selected text and navigate back using Braille display's keys, and the selected text is shown unless I press a touch cursor or — for example — the arrow keys of the keyboard. I tested this in browse mode and in Notepad++ text editor.

irrah68 avatar Jan 04 '24 10:01 irrah68

Braille was originally designed so that only one cursor (expanded or collapsed) would be shown on the display. E.g. when tethered to review, you would only see the review cursor. When tethered to focus, yoyou would only see caret / selection (expanded caret). I would bee curious to see any prototype of this idea so that I can get a better idea of what the UX would feel like.

michaelDCurran avatar Jan 08 '24 23:01 michaelDCurran

Solution has limitations but on the other hand tethering braille to review gives more possibilities, and showing selection should be one of them. Can I open pull request for prototype?

burmancomp avatar Jan 09 '24 08:01 burmancomp

Feel free to open a draft PR

seanbudd avatar Jan 09 '24 22:01 seanbudd

Do I close this issue?

burmancomp avatar Apr 21 '24 13:04 burmancomp

No, this is still valid. The solution though needs a redesign as documented in the closed PR.

Adriani90 avatar Apr 21 '24 18:04 Adriani90

I have another version which does not depend on scripts and _getSelection just returns TextInfo. Logic what it returns is in helper function and update function.

If decision is that this feature requires anyway larger redesign then I do not open new pr.

burmancomp avatar Apr 29 '24 18:04 burmancomp

@burmancomp - it is hard to provide feedback without more information on the approach. I would encourage either a more clear explanation or a draft PR again

seanbudd avatar Apr 30 '24 07:04 seanbudd