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

This commit is contained in:
Maurice Parker committed 2019-09-11 17:47:02 -05:00
1 parent 1b7a46e505
commit 57542592cb
1 file changed
+2 -2
@@ -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)
}
}