Skip to content

CmdPal: Fix context menu Ctrl+Enter in submenus and initial highlight - #51290

Merged
Michael Jolley (michaeljolley) merged 2 commits into
mainfrom
dev/jpolasek/b/50926-cmdpal-context-menu-polish
Oct 14, 2026
Merged

Michael Jolley (michaeljolley) merged 2 commits into
mainfrom
dev/jpolasek/b/50926-cmdpal-context-menu-polish

Conversation

@jiripolasek

@jiripolasek Jiří PolÃĄÅĄek (jiripolasek) commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Summary of the Pull Request

This PR improve behavior of update context menu:

  • Hides the selection highlight on open until the user navigates or filters.
  • Keeps Ctrl+Enter for the item's secondary command, not a submenu's first command.
  • Releases the hidden selection when the menu closes.
  • Adds a new sample for submenu without requested shortcuts.

Toaster wants a picture? Here's one!

bravelittletoasteranimationGIFbyCoolidgeCornerTheatre

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

- Hides the selection highlight on open until the user navigates or filters.
- Keeps Ctrl+Enter for the item's secondary command, not a submenu's first command.
- Releases the hidden selection when the menu closes.
- Adds a new sample for submenu without requested shortcuts.
@jiripolasek Jiří PolÃĄÅĄek (jiripolasek) added the Product-Command Palette Refers to the Command Palette utility label Oct 14, 2026
@github-actions github-actions Bot added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Oct 14, 2026
@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

✅ PR intake

All automated intake checks now pass. Thanks for the updates!

Automated PR intake; PowerToys maintainers make final decisions.

@github-actions github-actions Bot added Ready for review and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Oct 14, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Image

@michaeljolley
Michael Jolley (michaeljolley) merged commit f24abcf into main Oct 14, 2026
11 checks passed
@michaeljolley
Michael Jolley (michaeljolley) deleted the dev/jpolasek/b/50926-cmdpal-context-menu-polish branch October 14, 2026 21:55
@jiripolasek

Copy link
Copy Markdown
Collaborator Author
DogThankYouGIFbyMOODMAN

Boliang Zhang (LegendaryBlair) pushed a commit that referenced this pull request Oct 15, 2026
â€Ķ#51290)

<!-- Enter a brief description/summary of your PR here. What does it
fix/what does it change/how was it tested (even manually, if necessary)?
-->
## Summary of the Pull Request

This PR improve behavior of update context menu:

- Hides the selection highlight on open until the user navigates or
filters.
- Keeps Ctrl+Enter for the item's secondary command, not a submenu's
first command.
- Releases the hidden selection when the menu closes.
- Adds a new sample for submenu without requested shortcuts.

## Toaster wants a picture? Here's one!

<img width="600" height="480"
alt="bravelittletoasteranimationGIFbyCoolidgeCornerTheatre"
src="https://github.com/user-attachments/assets/4fa8527f-106b-4cde-802a-aa7d5a9692b8"
/>

<!-- Please review the items on the PR checklist before submitting-->
## PR Checklist

- [x] Closes: #50926
<!-- - [ ] Closes: #yyy (add separate lines for additional resolved
issues) -->
- [ ] **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
- [ ] [JSON for
signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json)
for new binaries
- [ ] [WXS for
installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs)
for new binaries and localization folder
- [ ] [YML for CI
pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml)
for new test projects
- [ ] [YML for signed
pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml)
- [ ] **Documentation updated:** If checked, please file a pull request
on [our docs
repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys)
and link it here: #xxx

<!-- Provide a more detailed description of the PR, other things fixed,
or any additional comments/features here -->
## Detailed Description of the Pull Request / Additional comments

<!-- Describe how you validated the behavior. Add automated tests
wherever possible, but list manual validation steps taken as well -->
## Validation Steps Performed

(cherry picked from commit f24abcf)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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 Ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CmdPal: Context menu first selection is visible

2 participants