Change the view that gets made the first responder so that keyboard shortcuts work again

This commit is contained in:
Maurice Parker 2019-09-04 03:12:50 -05:00
parent 722d486018
commit fa5840811a

View File

@ -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)
}
}