Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Sources/TypeAny/TextInjection/TextInjector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ final class TextInjector {
pasteboard.clearContents()
pasteboard.setString(text, forType: .string)

// 4. Simulate Cmd+V
// 4. Simulate Cmd+V (small delay to ensure clipboard is ready)
usleep(50_000) // 50ms
simulatePaste()

// 5. Restore original input source after paste
Expand Down
2 changes: 2 additions & 0 deletions Sources/TypeAny/UI/FloatingPanel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ final class FloatingPanelController {
contentModel.transcription = ""
contentModel.audioLevel = 0
contentModel.statusText = nil
contentModel.showSuccess = false
contentModel.vadBlinking = false

let content = FloatingPanelContent(model: contentModel)
let hosting = NSHostingView(rootView: content)
Expand Down