From 833e051a136593df30cba35bbc3273e5e3d84d2f Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 23 Oct 2026 11:08:00 -0700 Subject: [PATCH] =?UTF-8?q?Focus=20the=20task=20list=20whenever=20it=20ope?= =?UTF-8?q?ns,=20not=20only=20via=20=E2=8C=98T/=E2=8C=98P?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mac/Sources/Byre/Project.swift | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mac/Sources/Byre/Project.swift b/mac/Sources/Byre/Project.swift index acb0053..d35013a 100644 --- a/mac/Sources/Byre/Project.swift +++ b/mac/Sources/Byre/Project.swift @@ -317,8 +317,22 @@ private struct FollowCursor: ViewModifier { } } } + #if os(macOS) + .onChange(of: shownList, initial: true) { + if shownList != nil, store.paneFocus.inTaskPane { + overlays.takeListKeys(overlays.taskList ? store.selectedTaskId : nil) + } + } + #endif } } + + private var shownList: String? { + guard listedTasks(store, overlays) != nil else { + return nil + } + return overlays.taskList ? "" : store.focusedProject()?.id + } } struct TaskList: View {