Merge pull request #295 from gdmka/bug/paste-last-enhancement
Bugfix: Add shortcut handler for paste last transcription
This commit is contained in:
commit
960b81a45a
@ -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
|
KeyboardShortcuts.onKeyUp(for: .retryLastTranscription) { [weak self] in
|
||||||
guard let self = self else { return }
|
guard let self = self else { return }
|
||||||
Task { @MainActor in
|
Task { @MainActor in
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user