From fa5840811adffdb9f390d35634f8db29631dfba0 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 4 Sep 2019 03:12:50 -0500 Subject: [PATCH] Change the view that gets made the first responder so that keyboard shortcuts work again --- Mac/MainWindow/Detail/DetailViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mac/MainWindow/Detail/DetailViewController.swift b/Mac/MainWindow/Detail/DetailViewController.swift index a7a8ce63a..c1d26e512 100644 --- a/Mac/MainWindow/Detail/DetailViewController.swift +++ b/Mac/MainWindow/Detail/DetailViewController.swift @@ -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) } }