From 210df4957ecba8cbb6c5de0eda2703780fae93b7 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Wed, 27 May 2020 22:15:49 -0700 Subject: [PATCH] =?UTF-8?q?Make=20the=20sidebar=E2=80=99s=20outline=20view?= =?UTF-8?q?=20first=20responder=20on=20startup.=20Fixes=20#1262.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Mac/MainWindow/Sidebar/SidebarViewController.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mac/MainWindow/Sidebar/SidebarViewController.swift b/Mac/MainWindow/Sidebar/SidebarViewController.swift index a14fe0dba..d388bf811 100644 --- a/Mac/MainWindow/Sidebar/SidebarViewController.swift +++ b/Mac/MainWindow/Sidebar/SidebarViewController.swift @@ -75,6 +75,10 @@ protocol SidebarDelegate: class { } row += 1 } + + DispatchQueue.main.async { + self.outlineView.window?.makeFirstResponder(self.outlineView) + } } // MARK: - Notifications