Skip to content

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): tag synthetic Cmd+V as synthesized event

altic-devebbff23a1464
diff --git a/Sources/Fluid/Services/PasteDeliveryCoordinator.swift b/Sources/Fluid/Services/PasteDeliveryCoordinator.swift
index 9142d618..e7a64f5c 100644
--- a/Sources/Fluid/Services/PasteDeliveryCoordinator.swift
+++ b/Sources/Fluid/Services/PasteDeliveryCoordinator.swift
@@ -506,6 +506,9 @@ final class SystemPasteCommandPoster: PasteCommandPosting {
vDown.flags = .maskCommand
vUp.flags = .maskCommand
+ // Mark the paste as ours so the hotkey tap passes it through untouched.
+ vDown.setIntegerValueField(.eventSourceUserData, value: TypingService.synthesizedEventUserData)
+ vUp.setIntegerValueField(.eventSourceUserData, value: TypingService.synthesizedEventUserData)
// The coordinator verifies pasteboard ownership before reaching this point,
// so the temporary item is ready to consume without an additional delay.