We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c9d1d7 commit 5b6ecc9Copy full SHA for 5b6ecc9
1 file changed
Tool/Sources/AXExtension/AXUIElement.swift
@@ -58,7 +58,9 @@ public extension AXUIElement {
58
}
59
60
var isSourceEditor: Bool {
61
- description == "Source Editor" && roleDescription != "unknown"
+ if !(description == "Source Editor" && role != kAXUnknownRole) { return false }
62
+ if let _ = firstParent(where: { $0.identifier == "editor context" }) { return true }
63
+ return false
64
65
66
var selectedTextRange: ClosedRange<Int>? {
0 commit comments