@@ -15,14 +15,16 @@ internal class AXNode
1515 private readonly bool _editable ;
1616 private readonly bool _hidden ;
1717 private readonly string _role ;
18+ private readonly bool _ignored ;
1819 private bool ? _cachedHasFocusableChild ;
1920
20- public AXNode ( AccessibilityGetFullAXTreeResponse . AXTreeNode payload )
21+ private AXNode ( AccessibilityGetFullAXTreeResponse . AXTreeNode payload )
2122 {
2223 Payload = payload ;
2324
2425 _name = payload . Name != null ? payload . Name . Value . ToObject < string > ( ) : string . Empty ;
2526 _role = payload . Role != null ? payload . Role . Value . ToObject < string > ( ) : "Unknown" ;
27+ _ignored = payload . Ignored ;
2628
2729 _richlyEditable = payload . Properties ? . FirstOrDefault ( p => p . Name == "editable" ) ? . Value . Value . ToObject < string > ( ) == "richtext" ;
2830 _editable |= _richlyEditable ;
@@ -151,6 +153,7 @@ internal bool IsControl()
151153 case "tab" :
152154 case "textbox" :
153155 case "tree" :
156+ case "treeitem" :
154157 return true ;
155158 default :
156159 return false ;
@@ -159,7 +162,7 @@ internal bool IsControl()
159162
160163 internal bool IsInteresting ( bool insideControl )
161164 {
162- if ( _role == "Ignored" || _hidden )
165+ if ( _role == "Ignored" || _hidden || _ignored )
163166 {
164167 return false ;
165168 }
@@ -252,7 +255,8 @@ private bool IsPlainTextField()
252255 private bool IsTextOnlyObject ( )
253256 => _role == "LineBreak" ||
254257 _role == "text" ||
255- _role == "InlineTextBox" ;
258+ _role == "InlineTextBox" ||
259+ _role == "StaticText" ;
256260
257261 private bool HasFocusableChild ( )
258262 {
0 commit comments