fix(ui): add voice mode mute shortcut to keyboard shortcuts modal (#25193)

This commit is contained in:
G30 authored and GitHub committed 2026-05-31 14:52:20 -07:00
1 parent c665d4a7c6
commit 26b1529a45
2 files changed
+16 -1

No files matched your search

@@ -97,6 +97,10 @@
<!-- {$i18n.t('Only active when the chat input is in focus.')} --> <!-- {$i18n.t('Only active when the chat input is in focus.')} -->
<!-- {$i18n.t('Only active when the chat input is in focus and an LLM is generating a response.')} --> <!-- {$i18n.t('Only active when the chat input is in focus and an LLM is generating a response.')} -->
<!-- {$i18n.t('Only can be triggered when the chat input is in focus.')} --> <!-- {$i18n.t('Only can be triggered when the chat input is in focus.')} -->
<!-- {$i18n.t('Voice')} -->
<!-- {$i18n.t('Toggle Mute')} -->
<!-- {$i18n.t('Only active during Voice Mode.')} -->
{#each items as shortcut} {#each items as shortcut}
<div class="col-span-1 flex items-start"> <div class="col-span-1 flex items-start">
<ShortcutItem {shortcut} {isMac} /> <ShortcutItem {shortcut} {isMac} />
+12 -1
View File
@@ -40,7 +40,10 @@ export enum Shortcut {
REGENERATE_RESPONSE = 'regenerateResponse', REGENERATE_RESPONSE = 'regenerateResponse',
COPY_LAST_CODE_BLOCK = 'copyLastCodeBlock', COPY_LAST_CODE_BLOCK = 'copyLastCodeBlock',
COPY_LAST_RESPONSE = 'copyLastResponse', COPY_LAST_RESPONSE = 'copyLastResponse',
STOP_GENERATING = 'stopGenerating' STOP_GENERATING = 'stopGenerating',
//Voice
TOGGLE_MUTE = 'toggleMute'
} }
export const shortcuts: ShortcutRegistry = { export const shortcuts: ShortcutRegistry = {
@@ -164,5 +167,13 @@ export const shortcuts: ShortcutRegistry = {
name: 'Copy Last Code Block', name: 'Copy Last Code Block',
keys: ['mod', 'shift', ';'], keys: ['mod', 'shift', ';'],
category: 'Message' category: 'Message'
},
//Voice
[Shortcut.TOGGLE_MUTE]: {
name: 'Toggle Mute',
keys: ['M'],
category: 'Voice',
tooltip: 'Only active during Voice Mode.'
} }
}; };