Skip to content

Commit 10b84bd

Browse files
committed
Don't treat chat message box as SourceEditor
1 parent 1d8d921 commit 10b84bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tool/Sources/AXExtension/AXUIElement.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public extension AXUIElement {
5858
}
5959

6060
var isSourceEditor: Bool {
61-
description == "Source Editor"
61+
description == "Source Editor" && roleDescription != "unknown"
6262
}
6363

6464
var selectedTextRange: ClosedRange<Int>? {

0 commit comments

Comments
 (0)