mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-04 11:16:59 +00:00
Merge branch 'main' of https://github.com/Ranchero-Software/NetNewsWire
This commit is contained in:
commit
90aaf2e632
15 files changed
+157
-17
No files matched your search
@@ -120,6 +120,9 @@ final class ArticleViewController: UIViewController {
|
||||
override var keyCommands: [UIKeyCommand]? {
|
||||
return keyboardManager.keyCommands
|
||||
}
|
||||
override var canBecomeFirstResponder: Bool {
|
||||
true
|
||||
}
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
@@ -412,10 +415,19 @@ final class ArticleViewController: UIViewController {
|
||||
coordinator.navigateToTimeline()
|
||||
}
|
||||
|
||||
@objc func scrollLineDown(_ sender: Any?) {
|
||||
currentWebViewController?.scrollLineDown()
|
||||
}
|
||||
|
||||
@objc func scrollLineUp(_ sender: Any?) {
|
||||
currentWebViewController?.scrollLineUp()
|
||||
}
|
||||
|
||||
// MARK: API
|
||||
|
||||
// Focus this view controller rather than the web view, since the web view is replaced on each article change.
|
||||
func focus() {
|
||||
currentWebViewController?.focus()
|
||||
becomeFirstResponder()
|
||||
}
|
||||
|
||||
func canScrollDown() -> Bool {
|
||||
|
||||
Reference in new issue
Block a user