From 1a64bfcef8e573e4aac7e25f8442c1bab1282d8d Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Fri, 20 Jan 2023 11:33:28 -0500 Subject: [PATCH] Disallow keyboard focus in sidebar Makes keyboard shortcuts from the split VC's primary content available See #302 --- Tusker/Screens/Main/MainSidebarViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tusker/Screens/Main/MainSidebarViewController.swift b/Tusker/Screens/Main/MainSidebarViewController.swift index 50e017e6..d9ffd49f 100644 --- a/Tusker/Screens/Main/MainSidebarViewController.swift +++ b/Tusker/Screens/Main/MainSidebarViewController.swift @@ -89,6 +89,8 @@ class MainSidebarViewController: UIViewController { collectionView.delegate = self collectionView.dragDelegate = self collectionView.isSpringLoaded = true + // TODO: allow focusing sidebar once there's a workaround for keyboard shortcuts from main split content not being accessible when not in the responder chain + collectionView.allowsFocus = false view.addSubview(collectionView) dataSource = createDataSource()