Skip to content

CmdPal: Add keyboard shortcuts to manually expand compact mode palette - #49177

Merged
Michael Jolley (michaeljolley) merged 1 commit into
microsoft:mainfrom
jiripolasek:feature/49112-cmdpal-manually-expand-compact-mode
Jul 7, 2026
Merged

Michael Jolley (michaeljolley) merged 1 commit into
microsoft:mainfrom
jiripolasek:feature/49112-cmdpal-manually-expand-compact-mode

Conversation

@jiripolasek

Copy link
Copy Markdown
Collaborator

Summary of the Pull Request

This PR adds support for new keyboard shortcuts to expand CmdPal when in Compact mode. Both of them are "natural"

  • Down arrow key
  • Tab key

PR Checklist

  • Communication: I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected
  • Tests: Added/updated and all pass
  • Localization: All end-user-facing strings can be localized
  • Dev docs: Added/updated
  • New binaries: Added on the required places
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

e.Handled = true;
break;
case VirtualKey.Down when modifiers.None:
case VirtualKey.Tab when modifiers.None:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay Tab gives me pause, but I think it's fine?

  • the first tab will find that we're not expanded, so it'll expand it, then handle the key, and focus stays in the box
  • the second tab will find that we are expanded, and then do nothing, and tab will move focus to the next element

since in compact mode, there's nothing really else to focus, this seems sensible

@michaeljolley
Michael Jolley (michaeljolley) merged commit c1ef511 into microsoft:main Jul 7, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Product-Command Palette Refers to the Command Palette utility

4 participants