mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-15 04:40:40 -07:00
windows keybind note
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Check, ChevronDown, FolderOpen, Keyboard, Laptop, Lock, Volume2 } from 'lucide-react';
|
||||
import { Check, ChevronDown, FolderOpen, Info, Keyboard, Laptop, Lock, Volume2 } from 'lucide-react';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { AccessibilityNotice } from '@/components/AccessibilityGate/AccessibilityGate';
|
||||
@@ -61,6 +61,9 @@ function ChordPreview({ keys }: { keys: string[] }) {
|
||||
);
|
||||
}
|
||||
|
||||
const isWindows =
|
||||
typeof navigator !== 'undefined' && navigator.userAgent.includes('Windows');
|
||||
|
||||
const PILL_SEQUENCE: PillState[] = ['recording', 'transcribing', 'refining', 'rest'];
|
||||
const PILL_DURATIONS: Partial<Record<PillState, number>> = {
|
||||
recording: 2600,
|
||||
@@ -569,6 +572,21 @@ export function CapturesPage() {
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
{isWindows && (
|
||||
<div className="rounded-lg border border-accent/20 bg-accent/5 px-3 py-2.5">
|
||||
<div className="flex items-start gap-2.5">
|
||||
<Info className="h-4 w-4 shrink-0 mt-0.5 text-accent" />
|
||||
<div className="flex-1 min-w-0 space-y-0.5">
|
||||
<p className="text-sm font-medium text-foreground">
|
||||
{t('settings.captures.sidebar.windowsCaveat.title')}
|
||||
</p>
|
||||
<p className="text-sm text-muted-foreground leading-relaxed">
|
||||
{t('settings.captures.sidebar.windowsCaveat.body')}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Same six-gate checklist the CapturesTab empty state uses.
|
||||
|
||||
@@ -1022,6 +1022,10 @@
|
||||
"crossPlatform": {
|
||||
"title": "Cross-platform.",
|
||||
"body": "Same shortcut, same flow on macOS, Windows, and Linux."
|
||||
},
|
||||
"windowsCaveat": {
|
||||
"title": "Heads-up on Windows",
|
||||
"body": "The shortcut won't fire while Voicebox itself or any app running as administrator is focused. Working on it."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1022,6 +1022,10 @@
|
||||
"crossPlatform": {
|
||||
"title": "クロスプラットフォーム。",
|
||||
"body": "macOS、Windows、Linux で同じショートカットと同じフローを利用できます。"
|
||||
},
|
||||
"windowsCaveat": {
|
||||
"title": "Windows での注意点",
|
||||
"body": "Voicebox 自体や管理者として実行中のアプリにフォーカスがあるあいだは、ショートカットが反応しません。現在対応中です。"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1022,6 +1022,10 @@
|
||||
"crossPlatform": {
|
||||
"title": "跨平台。",
|
||||
"body": "在 macOS、Windows 和 Linux 上使用相同的快捷键和流程。"
|
||||
},
|
||||
"windowsCaveat": {
|
||||
"title": "Windows 上的提示",
|
||||
"body": "当 Voicebox 自身或任何以管理员身份运行的应用处于焦点时,快捷键不会触发。我们正在解决这个问题。"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1022,6 +1022,10 @@
|
||||
"crossPlatform": {
|
||||
"title": "跨平台。",
|
||||
"body": "在 macOS、Windows 與 Linux 上享有相同的快捷鍵與相同的流程。"
|
||||
},
|
||||
"windowsCaveat": {
|
||||
"title": "Windows 上的提醒",
|
||||
"body": "當 Voicebox 本身或任何以系統管理員身分執行的應用程式取得焦點時,快捷鍵不會觸發。我們正在處理中。"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user