From bf028f427cecd375c4f18afed77546357f0fec61 Mon Sep 17 00:00:00 2001 From: Beingpax Date: Thu, 30 Oct 2025 22:06:13 +0545 Subject: [PATCH] Added keyboard shortcut for menu items --- VoiceInk/Views/MenuBarView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VoiceInk/Views/MenuBarView.swift b/VoiceInk/Views/MenuBarView.swift index 903e6d3..8067481 100644 --- a/VoiceInk/Views/MenuBarView.swift +++ b/VoiceInk/Views/MenuBarView.swift @@ -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