Fix bug in arrow key navigation where focus could get stolen from the timeline

This commit is contained in:
Maurice Parker 2019-09-05 10:46:24 -05:00
parent 7a452e2a3c
commit ac03992430
2 changed files with 1 additions and 5 deletions

View File

@ -31,10 +31,6 @@ class DetailViewController: UIViewController {
return keyboardManager.keyCommands
}
override var canBecomeFirstResponder: Bool {
return true
}
deinit {
webView.removeFromSuperview()
DetailViewControllerWebViewProvider.shared.enqueueWebView(webView)

View File

@ -819,10 +819,10 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
}
func navigateToTimeline() {
masterTimelineViewController?.focus()
if currentArticleIndexPath == nil {
selectArticle(IndexPath(row: 0, section: 0))
}
masterTimelineViewController?.focus()
}
func navigateToDetail() {