Correct which view should become the first responder. Issue #1014
This commit is contained in:
parent
1b7a46e505
commit
57542592cb
|
@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue