Skip to content

Commit 79ad332

Browse files
committed
Add accessibilitySharedCharacterRange method for STTextView
1 parent c88125b commit 79ad332

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Sources/STTextViewAppKit/STTextView+NSAccessibilityProtocol.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
import AppKit
55
import STTextKitPlus
66

7+
8+
/// NSAccessibility
9+
extension STTextView {
10+
open override func accessibilitySharedCharacterRange() -> NSRange {
11+
NSRange(textContentManager.documentRange, in: textContentManager)
12+
}
13+
}
14+
15+
716
/// NSAccessibilityProtocol
817
extension STTextView {
918

0 commit comments

Comments
 (0)