Skip to content

Allow hiding the dictation mic button while keeping Cmd/Ctrl+I - #328832

Draft
meganrogge with Copilot wants to merge 2 commits into
mainfrom
copilot/follow-action-bar-patterns
Draft

Allow hiding the dictation mic button while keeping Cmd/Ctrl+I#328832
meganrogge with Copilot wants to merge 2 commits into
mainfrom
copilot/follow-action-bar-patterns

Conversation

Copilot AI commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Description

The dictation mic button context menu only offered Disable, which flips dictation.enabled and takes the Cmd/Ctrl+I shortcut down with it — there was no way to hide just the button. This adds an action-bar–style visibility toggle so the button can be hidden while the shortcut keeps working.

  • New setting dictation.showButton (default true), added as DictationSettingId.ShowButton.
  • Button gated on the settingChatSpeechToTextButtonShown (config.dictation.showButton) is added to the when of the three MenuId.ChatExecute mic items (toggle / preparing / connecting). The ToggleChatSpeechToTextAction keybinding is left gated only on ChatSpeechToTextConfigured, so Cmd/Ctrl+I still launches dictation when the button is hidden.
  • Context menu togglegetDictationContextMenuActions now includes a checkable "Microphone Button" entry (checked when shown) that flips the setting; restorable via the existing Open Settings entry.
  • Agents-window composer — the custom mic <div> (newChatInput.ts) honors the same setting in its visibility computation and config listener; its Cmd/Ctrl+I command is likewise independent.

Scoped to dictation, matching the reported flow. Voice Mode (Cmd+Shift+Space) uses a separate menu and is untouched.

Co-authored-by: meganrogge <29464607+meganrogge@users.noreply.github.com>
Copilot AI requested review from Copilot and removed request for Copilot August 3, 2026 20:38
Copilot AI changed the title [WIP] Follow existing action bar patterns to hide buttons while maintaining functionality Allow hiding the dictation mic button while keeping Cmd/Ctrl+I Aug 3, 2026
Copilot AI requested a review from meganrogge August 3, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Follow existing action bar patterns to hide buttons while maintaining functionality

2 participants