Added keyboard shortcut for menu items

This commit is contained in:
Beingpax 2025-10-30 22:06:13 +05:45
parent 73318967ac
commit bf028f427c

View File

@ -180,6 +180,7 @@ struct MenuBarView: View {
Button("Copy Last Transcription") {
LastTranscriptionService.copyLastTranscription(from: whisperState.modelContext)
}
.keyboardShortcut("c", modifiers: [.command, .shift])
Button("History") {
menuBarManager.openMainWindowAndNavigate(to: "History")
@ -194,6 +195,7 @@ struct MenuBarView: View {
Button(menuBarManager.isMenuBarOnly ? "Show Dock Icon" : "Hide Dock Icon") {
menuBarManager.toggleMenuBarOnly()
}
.keyboardShortcut("d", modifiers: [.command, .shift])
Toggle("Launch at Login", isOn: $launchAtLoginEnabled)
.onChange(of: launchAtLoginEnabled) { oldValue, newValue in