Add keyboard navigation shortcuts
This commit is contained in:
@@ -182,6 +182,7 @@ private struct ChatComposer: View {
|
|||||||
Label("Send", systemImage: "paperplane.fill")
|
Label("Send", systemImage: "paperplane.fill")
|
||||||
.labelStyle(.iconOnly)
|
.labelStyle(.iconOnly)
|
||||||
}
|
}
|
||||||
|
.keyboardShortcut(.return, modifiers: .command)
|
||||||
.buttonStyle(.borderedProminent)
|
.buttonStyle(.borderedProminent)
|
||||||
.disabled(text.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty)
|
.disabled(text.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty)
|
||||||
.help("Send")
|
.help("Send")
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ struct ProjectBrowserView: View {
|
|||||||
} label: {
|
} label: {
|
||||||
Label("New Project", systemImage: "plus")
|
Label("New Project", systemImage: "plus")
|
||||||
}
|
}
|
||||||
|
.keyboardShortcut("n", modifiers: .command)
|
||||||
.disabled(viewModel.isCreatingProject)
|
.disabled(viewModel.isCreatingProject)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ struct ProjectInspectorView: View {
|
|||||||
} label: {
|
} label: {
|
||||||
Label("Save", systemImage: "tray.and.arrow.down")
|
Label("Save", systemImage: "tray.and.arrow.down")
|
||||||
}
|
}
|
||||||
|
.keyboardShortcut("s", modifiers: .command)
|
||||||
.disabled(isSaving)
|
.disabled(isSaving)
|
||||||
}
|
}
|
||||||
.padding(16)
|
.padding(16)
|
||||||
|
|||||||
+1
-1
@@ -114,7 +114,7 @@ requirement is missing and blocks implementation, record it in
|
|||||||
|
|
||||||
- [x] Add validation for contradictory/invalid project settings.
|
- [x] Add validation for contradictory/invalid project settings.
|
||||||
- [x] Add loading, offline and provider-error states.
|
- [x] Add loading, offline and provider-error states.
|
||||||
- [ ] Add accessibility labels and keyboard navigation.
|
- [x] Add accessibility labels and keyboard navigation.
|
||||||
- [ ] Test project/version recovery.
|
- [ ] Test project/version recovery.
|
||||||
- [ ] Test AI output against locked user choices.
|
- [ ] Test AI output against locked user choices.
|
||||||
- [ ] Test selected instruments influence compiled song-generation
|
- [ ] Test selected instruments influence compiled song-generation
|
||||||
|
|||||||
Reference in New Issue
Block a user