Skip to content

Commit

Permalink
Voice dictation shortcut (fix #206800) (#213806)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero authored May 29, 2024
1 parent 6c907b5 commit 65c9ed2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { assertIsDefined } from 'vs/base/common/types';
import { ActionBar } from 'vs/base/browser/ui/actionbar/actionbar';
import { toAction } from 'vs/base/common/actions';
import { ThemeIcon } from 'vs/base/common/themables';
import { isWindows } from 'vs/base/common/platform';

const EDITOR_DICTATION_IN_PROGRESS = new RawContextKey<boolean>('editorDictation.inProgress', false);
const VOICE_CATEGORY = localize2('voiceCategory', "Voice");
Expand All @@ -48,7 +49,10 @@ export class EditorDictationStartAction extends EditorAction2 {
f1: true,
keybinding: {
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyV,
weight: KeybindingWeight.WorkbenchContrib
weight: KeybindingWeight.WorkbenchContrib,
secondary: isWindows ? [
KeyMod.Alt | KeyCode.Backquote
] : undefined
}
});
}
Expand Down

0 comments on commit 65c9ed2

Please sign in to comment.