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(dictionary): dismiss suggestions globally

altic-devae9b71a272bb
diff --git a/Sources/Fluid/ContentView.swift b/Sources/Fluid/ContentView.swift
index 3b01983d..3623bcf7 100644
--- a/Sources/Fluid/ContentView.swift
+++ b/Sources/Fluid/ContentView.swift
@@ -3467,6 +3467,14 @@ struct ContentView: View {
self.hotkeyManager?.setCancelCallback {
var handled = false
+ // The suggestion panel is non-activating, so its Escape key arrives
+ // through the global event tap while the target app stays focused.
+ if DictionaryCorrectionOverlayController.shared.isPresented {
+ DebugLogger.shared.debug("Cancel callback: closing dictionary suggestion", source: "ContentView")
+ DictionaryCorrectionOverlayController.shared.dismiss()
+ return true
+ }
+
// Close expanded command notch if visible (highest priority)
if NotchOverlayManager.shared.isCommandOutputExpanded {
DebugLogger.shared.debug("Cancel callback: closing expanded command notch", source: "ContentView")