Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix: persist hotkey selection

Gabriel Stein2e51983bfac5
diff --git a/src/components/OnboardingFlow.tsx b/src/components/OnboardingFlow.tsx
index eed1d9a6b..22dfacf83 100644
--- a/src/components/OnboardingFlow.tsx
+++ b/src/components/OnboardingFlow.tsx
@@ -77,7 +77,7 @@ export default function OnboardingFlow({ onComplete }: OnboardingFlowProps) {
updateTranscriptionSettings,
} = useSettings();
- const [hotkey, setHotkey] = useState(dictationKey || "`");
+ const [hotkey, setHotkey] = useState(dictationKey || getDefaultHotkey());
const [agentName, setAgentName] = useState("Agent");
const [isModelDownloaded, setIsModelDownloaded] = useState(false);
const readableHotkey = formatHotkeyLabel(hotkey);
diff --git a/src/helpers/hotkeyManager.js b/src/helpers/hotkeyManager.js
index 7cfc40c95..bf1dc6a80 100644
--- a/src/helpers/hotkeyManager.js
+++ b/src/helpers/hotkeyManager.js
@@ -262,6 +262,7 @@ class HotkeyManager {
try {
const result = this.setupShortcuts(hotkey, callback);
if (result.success) {
+ this.saveHotkeyToRenderer(hotkey);
return { success: true, message: `Hotkey updated to: ${hotkey}` };
} else {
return {