From 10abe908926c598c8184bd0ba05665550772c108 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 23 Jun 2026 12:30:53 +0300 Subject: [PATCH] fix: keep push-to-talk enabled when global hotkey fails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the global hotkey fails to initialize, the app was falling back to toggle mode (push_to_talk = false). Toggle mode is broken — it transitions states without creating a recorder or running transcription, causing the app to get stuck on 'Transcribing...'. Now the app keeps push_to_talk = true and just warns the user that the global hotkey is unavailable. Space key continues to work via terminal. --- src/app/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/mod.rs b/src/app/mod.rs index 328c9f5..9c360d3 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -211,10 +211,7 @@ impl VoiceApp { } Err(e) => { eprintln!("[voice] Warning: Could not set up global hotkey: {}", e); - if self.config.push_to_talk { - eprintln!("[voice] Falling back to toggle mode (press space to start/stop recording)."); - self.config.push_to_talk = false; - } + eprintln!("[voice] Global hotkey unavailable. Use terminal keyboard (space) to record."); } } }