Skip to content

Commit 65c9ed2

Browse files
authored
Voice dictation shortcut (fix microsoft#206800) (microsoft#213806)
1 parent 6c907b5 commit 65c9ed2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import { assertIsDefined } from 'vs/base/common/types';
2929
import { ActionBar } from 'vs/base/browser/ui/actionbar/actionbar';
3030
import { toAction } from 'vs/base/common/actions';
3131
import { ThemeIcon } from 'vs/base/common/themables';
32+
import { isWindows } from 'vs/base/common/platform';
3233

3334
const EDITOR_DICTATION_IN_PROGRESS = new RawContextKey<boolean>('editorDictation.inProgress', false);
3435
const VOICE_CATEGORY = localize2('voiceCategory', "Voice");
@@ -48,7 +49,10 @@ export class EditorDictationStartAction extends EditorAction2 {
4849
f1: true,
4950
keybinding: {
5051
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyV,
51-
weight: KeybindingWeight.WorkbenchContrib
52+
weight: KeybindingWeight.WorkbenchContrib,
53+
secondary: isWindows ? [
54+
KeyMod.Alt | KeyCode.Backquote
55+
] : undefined
5256
}
5357
});
5458
}

0 commit comments

Comments
 (0)