Correct which view should become the first responder. Issue #1014

This commit is contained in:
Maurice Parker 2019-09-11 17:47:02 -05:00
parent 1b7a46e505
commit 57542592cb
1 changed files with 2 additions and 2 deletions

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