fix(dictation): show user's configured hotkey in hints, not hardcoded Ctrl+Shift+R
Both the status-line hint next to the record button and the empty-state message now read settings.globalHotkey reactively, so 'Press record or Super+E' (or whatever the user has bound) stays in sync with the actual shortcut. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -708,7 +708,7 @@
|
|||||||
Saved{#if extractedCount > 0} · {extractedCount} task{extractedCount === 1 ? '' : 's'} extracted{/if}
|
Saved{#if extractedCount > 0} · {extractedCount} task{extractedCount === 1 ? '' : 's'} extracted{/if}
|
||||||
</span>
|
</span>
|
||||||
{:else}
|
{:else}
|
||||||
Press record or <kbd class="px-1 py-0.5 rounded bg-bg-elevated text-[10px] text-text-tertiary border border-border-subtle">Ctrl+Shift+R</kbd>
|
Press record or <kbd class="px-1 py-0.5 rounded bg-bg-elevated text-[10px] text-text-tertiary border border-border-subtle">{settings.globalHotkey}</kbd>
|
||||||
{/if}
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
@@ -853,7 +853,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{:else if !transcript.trim() && !page.recording && !transcribing}
|
{:else if !transcript.trim() && !page.recording && !transcribing}
|
||||||
<div class="flex-1 flex items-center justify-center">
|
<div class="flex-1 flex items-center justify-center">
|
||||||
<EmptyState icon={Mic} message="Press record or Ctrl+Shift+R" />
|
<EmptyState icon={Mic} message={`Press record or ${settings.globalHotkey}`} />
|
||||||
</div>
|
</div>
|
||||||
<textarea
|
<textarea
|
||||||
bind:this={textareaEl}
|
bind:this={textareaEl}
|
||||||
|
|||||||
Reference in New Issue
Block a user