-
Notifications
You must be signed in to change notification settings - Fork 73
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
TUI regression for screen readers #1030
Comments
Related: #4 |
this is the fix for your current PR: diff --git a/lib-tui/GHCup/Brick/Widgets/Navigation.hs b/lib-tui/GHCup/Brick/Widgets/Navigation.hs
index 77de48e..0685bf4 100644
--- a/lib-tui/GHCup/Brick/Widgets/Navigation.hs
+++ b/lib-tui/GHCup/Brick/Widgets/Navigation.hs
@@ -36,6 +36,8 @@ import Brick
(<+>),
(<=>))
import qualified Brick
+import Brick.Widgets.Core ( putCursor )
+import Brick.Types ( Location(..) )
import Brick.Widgets.Border ( hBorder, borderWithLabel)
import Brick.Widgets.Border.Style ( unicode )
import Brick.Widgets.Center ( center )
@@ -100,7 +102,8 @@ draw dimAttrs section_list
| elem Latest lTag' && not lInstalled =
Brick.withAttr Attributes.hoorayAttr
| otherwise = id
- in hooray $ dim
+ active = if b then putCursor Common.AllTools (Location (0,0)) else id
+ in hooray $ active $ dim
( marks
<+> Brick.padLeft (Pad 2)
( minHSize 6 I believe... however, we probably need to do the same for the new popup windows, so that screenreaders know where we are. I'm not sure how to test all this. |
Ah, we can use |
I've pushed the fix you propose and also the same fix for the new popups. I have tried to use ubuntu's screen reader to test it, but honestly I don't know how to use it (It seems to not read a thing in my screen...) By the way
this can be done for sure. Is it worth? |
I got an email from a blind user:
@lsmor
The text was updated successfully, but these errors were encountered: