Skip to content
Open
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
4 changes: 2 additions & 2 deletions Hex/Features/Transcription/TranscriptionFeature.swift
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ private extension TranscriptionFeature {

case .stopRecording:
Task { await send(.hotKeyReleased) }
return false // or `true` if you want to intercept
return true // Intercept to prevent Option key from printing special characters

case .cancel:
Task { await send(.cancel) }
Expand All @@ -217,7 +217,7 @@ private extension TranscriptionFeature {
// If we detect repeated same chord, maybe intercept.
if let pressedKey = keyEvent.key,
pressedKey == hotKeyProcessor.hotkey.key,
keyEvent.modifiers == hotKeyProcessor.hotkey.modifiers
keyEvent.modifiers.matchesExactly(hotKeyProcessor.hotkey.modifiers)
{
return true
}
Expand Down