Added keyboard shortcut for menu items
This commit is contained in:
parent
73318967ac
commit
bf028f427c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user