Translator hotkey: Option + ` (key left of 1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user