Translator hotkey: Option + ` (key left of 1)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maksarsanjeev
2026-10-08 00:07:35 +03:00
parent 52e1e8288b
commit efb3bac8fc
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -2,7 +2,7 @@ import SwiftUI
import AppKit
import Translation
// MARK: - Translator (Func → Переводчик, ⌃⌥R)
// MARK: - Translator (Func → Переводчик, ⌥`)
//
// Takes the text selected in the front app (Accessibility; falls back to a simulated ⌘C
// with the clipboard restored afterwards; then to whatever is already on the clipboard),
@@ -26,8 +26,8 @@ enum TranslatorRun {
guard let source = await SelectionGrabber.grab(), !source.isEmpty else {
state.translation = TranslationResult(source: "", toRussian: true,
error: SelectionGrabber.trusted
? "Не нашёл выделенного текста. Выдели текст в приложении и нажми ⌃⌥R."
: "Дай BroV доступ: Системные настройки → Конфиденциальность → Универсальный доступ → BroV. Потом выдели текст и нажми ⌃⌥R.",
? "Не нашёл выделенного текста. Выдели текст в приложении и нажми ⌥`."
: "Дай BroV доступ: Системные настройки → Конфиденциальность → Универсальный доступ → BroV. Потом выдели текст и нажми ⌥`.",
loading: false)
show(state)
return