Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more
fix: paste waits for key release instead of aborting at 0.6s
Tomb9eed0179703
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swiftindex e9d34977..91e5a16b 100644--- a/Sources/Fluid/ContentView.swift+++ b/Sources/Fluid/ContentView.swift@@ -2530,12 +2530,12 @@ struct ContentView: View {Task { @MainActor in// The hotkey fires on key-down while its own modifier keys (e.g. ⌘⌃) are still// physically held. Synthesizing text in that state makes the target app treat the- // characters as keyboard shortcuts and drop them, so wait for the modifiers to be- // released before inserting. (Dictation never hits this because by the time it types,- // no keys are held.) If they never release (stuck/held), abort rather than typing a- // corrupted — and possibly destructive — shortcut sequence; the user can retrigger.- guard await Self.waitForHotkeyModifiersReleased(timeout: 0.6) else {- DebugLogger.shared.info("Actions: Paste aborted - modifier keys still held", source: "ContentView")+ // characters as keyboard shortcuts and drop them, so the paste lands once the keys are+ // released — effectively "paste when you let go". The timeout is generous so a normal+ // hold (or a quick repeated press) still pastes on release; it only aborts if a modifier+ // is genuinely stuck, rather than typing a corrupted/destructive shortcut sequence.+ guard await Self.waitForHotkeyModifiersReleased(timeout: 5) else {+ DebugLogger.shared.info("Actions: Paste aborted - modifier keys still held after timeout", source: "ContentView")return}