mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Change the view that gets made the first responder so that keyboard shortcuts work again
This commit is contained in:
@@ -68,10 +68,10 @@ final class DetailViewController: NSViewController, WKUIDelegate {
|
||||
|
||||
func focus() {
|
||||
|
||||
guard let window = currentWebViewController.view.window else {
|
||||
guard let window = currentWebViewController.webView.window else {
|
||||
return
|
||||
}
|
||||
window.makeFirstResponderUnlessDescendantIsFirstResponder(currentWebViewController.view)
|
||||
window.makeFirstResponderUnlessDescendantIsFirstResponder(currentWebViewController.webView)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user