Fix bug in arrow key navigation where focus could get stolen from the timeline
This commit is contained in:
parent
7a452e2a3c
commit
ac03992430
|
@ -31,10 +31,6 @@ class DetailViewController: UIViewController {
|
||||||
return keyboardManager.keyCommands
|
return keyboardManager.keyCommands
|
||||||
}
|
}
|
||||||
|
|
||||||
override var canBecomeFirstResponder: Bool {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
deinit {
|
deinit {
|
||||||
webView.removeFromSuperview()
|
webView.removeFromSuperview()
|
||||||
DetailViewControllerWebViewProvider.shared.enqueueWebView(webView)
|
DetailViewControllerWebViewProvider.shared.enqueueWebView(webView)
|
||||||
|
|
|
@ -819,10 +819,10 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
func navigateToTimeline() {
|
func navigateToTimeline() {
|
||||||
masterTimelineViewController?.focus()
|
|
||||||
if currentArticleIndexPath == nil {
|
if currentArticleIndexPath == nil {
|
||||||
selectArticle(IndexPath(row: 0, section: 0))
|
selectArticle(IndexPath(row: 0, section: 0))
|
||||||
}
|
}
|
||||||
|
masterTimelineViewController?.focus()
|
||||||
}
|
}
|
||||||
|
|
||||||
func navigateToDetail() {
|
func navigateToDetail() {
|
||||||
|
|
Loading…
Reference in New Issue