We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 519f9bd commit 48bdfeeCopy full SHA for 48bdfee
1 file changed
Sources/Runestone/TextView/Core/Mac/TextView_Mac.swift
@@ -749,6 +749,14 @@ public extension TextView {
749
override func selectAll(_ sender: Any?) {
750
textViewController.selectedRange = NSRange(location: 0, length: textViewController.stringView.string.length)
751
}
752
+
753
+ override func scrollPageUp(_ sender: Any?) {
754
+ scrollContentView.scroll(scrollContentView.visibleRect.applying(.init(translationX: 0, y: -visibleRect.height)).origin)
755
+ }
756
757
+ override func scrollPageDown(_ sender: Any?) {
758
+ scrollContentView.scroll(scrollContentView.visibleRect.applying(.init(translationX: 0, y: visibleRect.height)).origin)
759
760
761
762
// MARK: - Window
0 commit comments