Project enter opens task
This commit is contained in:
@@ -39,6 +39,13 @@ struct ProjectView: View {
|
||||
step(press.key == .downArrow ? 1 : -1)
|
||||
return .handled
|
||||
}
|
||||
.onKeyPress(.return) {
|
||||
guard let id = store.selectedTaskId, store.focusedProject() != nil else {
|
||||
return .ignored
|
||||
}
|
||||
store.focusTask(id)
|
||||
return .handled
|
||||
}
|
||||
.onAppear {
|
||||
if !(overlays.window?.firstResponder is NSTextView) {
|
||||
keys = true
|
||||
|
||||
Reference in New Issue
Block a user