From c3713e73e5906855d6b8bcfe42c6804fbfb04304 Mon Sep 17 00:00:00 2001 From: Alexey Haidamaka Date: Sat, 13 Sep 2025 21:58:08 +0200 Subject: [PATCH] Add shortcut handler for paste last transcription --- VoiceInk/HotkeyManager.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/VoiceInk/HotkeyManager.swift b/VoiceInk/HotkeyManager.swift index 0e1ace8..188d1b4 100644 --- a/VoiceInk/HotkeyManager.swift +++ b/VoiceInk/HotkeyManager.swift @@ -150,6 +150,13 @@ class HotkeyManager: ObservableObject { } } + KeyboardShortcuts.onKeyUp(for: .pasteLastEnhancement) { [weak self] in + guard let self = self else { return } + Task { @MainActor in + LastTranscriptionService.pasteLastEnhancement(from: self.whisperState.modelContext) + } + } + KeyboardShortcuts.onKeyUp(for: .retryLastTranscription) { [weak self] in guard let self = self else { return } Task { @MainActor in