Browse Source
Map macOS ListItem peer to AXRow instead of AXGroup (#21537)
Report AXRow with the AXTableRow subrole so list items are distinguishable from generic panels.
pull/21527/head
Jumar Macato
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
1 deletions
-
native/Avalonia.Native/src/OSX/automation.mm
|
|
|
@ -96,7 +96,7 @@ |
|
|
|
case AutomationEdit: return NSAccessibilityTextFieldRole; |
|
|
|
case AutomationHyperlink: return NSAccessibilityLinkRole; |
|
|
|
case AutomationImage: return NSAccessibilityImageRole; |
|
|
|
case AutomationListItem: return NSAccessibilityGroupRole; |
|
|
|
case AutomationListItem: return NSAccessibilityRowRole; |
|
|
|
case AutomationList: return NSAccessibilityListRole; |
|
|
|
case AutomationMenu: return NSAccessibilityMenuBarRole; |
|
|
|
case AutomationMenuBar: return NSAccessibilityMenuBarRole; |
|
|
|
@ -141,6 +141,7 @@ |
|
|
|
auto controlType = _peer->GetAutomationControlType(); |
|
|
|
switch (controlType) { |
|
|
|
case AutomationList: return @"AXContentList"; |
|
|
|
case AutomationListItem: return NSAccessibilityTableRowSubrole; |
|
|
|
} |
|
|
|
|
|
|
|
auto landmarkType = _peer->GetLandmarkType(); |
|
|
|
|