Skip to content

Commit

Permalink
Remove Panel accessible role from the root node, and unknown nodes
Browse files Browse the repository at this point in the history
1. Panel unavailable on Windows at start
2. When focus on Switch or Box(Modifier.clickable), there was "Panel0". Now it say nothing
3. Fix pronouncing the window title on losing focus in TextField after merging #881 (we refocus main window there)

## Testing
Manually with accessibility enabled on run1 (Windows, macOs)
  • Loading branch information
igordmn committed Oct 19, 2023
1 parent 54577e1 commit 4f279fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ internal class ComposeAccessible(
setText != null -> AccessibleRole.TEXT
text != null -> AccessibleRole.LABEL
progressBarRangeInfo != null -> AccessibleRole.PROGRESS_BAR
else -> AccessibleRole.PANEL
else -> AccessibleRole.UNKNOWN
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ internal class ComposeSceneAccessible(
}

override fun getAccessibleRole(): AccessibleRole {
return AccessibleRole.PANEL
return AccessibleRole.UNKNOWN
}

override fun getAccessibleStateSet(): AccessibleStateSet {
Expand Down

0 comments on commit 4f279fd

Please sign in to comment.