Using 'Toggle command palette' action from palette doesn't close palette #13997

Closed
opened 2026-01-31 03:58:00 +00:00 by claunia · 4 comments
Owner

Originally created by @KnapSac on GitHub (May 27, 2021).

Windows Terminal version (or Windows build number)

1.9.1445.0

Other Software

No response

Steps to reproduce

  • Open the command palette
  • Search for: Toggle command palette
  • Hit enter to use that action

Expected Behavior

I'd expect the palette to close when using the Toggle command palette item in the palette. This is also what happens when you use the toggle shortcut while the palette is open.

Actual Behavior

The entered search text is cleared, and the palette remains open. The code responsible seems to be:
b2c2a4c159/src/cascadia/TerminalApp/AppActionHandlers.cpp (L369-L380)

When the command palette is open, and you use the shortcut to toggle its visibility, CommandPalette().Visibility() correctly returns Visibility::Visible and the palette is closed. On the other hand, when using the entry in the palette, CommandPalette().Visibility() returns Visibility::Collapsed, which causes the palette to remain open.

Originally created by @KnapSac on GitHub (May 27, 2021). ### Windows Terminal version (or Windows build number) 1.9.1445.0 ### Other Software _No response_ ### Steps to reproduce - Open the command palette - Search for: `Toggle command palette` - Hit enter to use that action ### Expected Behavior I'd expect the palette to close when using the `Toggle command palette` item in the palette. This is also what happens when you use the toggle shortcut while the palette is open. ### Actual Behavior The entered search text is cleared, and the palette remains open. The code responsible seems to be: https://github.com/microsoft/terminal/blob/b2c2a4c159b7e918ea8aabc9e22f83d58a479002/src/cascadia/TerminalApp/AppActionHandlers.cpp#L369-L380 When the command palette is open, and you use the shortcut to toggle its visibility, `CommandPalette().Visibility()` correctly returns `Visibility::Visible` and the palette is closed. On the other hand, when using the entry in the palette, `CommandPalette().Visibility()` returns `Visibility::Collapsed`, which causes the palette to remain open.
Author
Owner

@zadjii-msft commented on GitHub (May 28, 2021):

Huh. Good catch!

@zadjii-msft commented on GitHub (May 28, 2021): Huh. Good catch!
Author
Owner

@KnapSac commented on GitHub (May 28, 2021):

I'll see if I can track down what's causing this.

@KnapSac commented on GitHub (May 28, 2021): I'll see if I can track down what's causing this.
Author
Owner

@ghost commented on GitHub (Jul 14, 2021):

:tada:This issue was addressed in #10423, which has now been successfully released as Windows Terminal v1.9.1942.0.🎉

Handy links:

@ghost commented on GitHub (Jul 14, 2021): :tada:This issue was addressed in #10423, which has now been successfully released as `Windows Terminal v1.9.1942.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.9.1942.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Author
Owner

@ghost commented on GitHub (Jul 14, 2021):

:tada:This issue was addressed in #10423, which has now been successfully released as Windows Terminal Preview v1.10.1933.0.🎉

Handy links:

@ghost commented on GitHub (Jul 14, 2021): :tada:This issue was addressed in #10423, which has now been successfully released as `Windows Terminal Preview v1.10.1933.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.10.1933.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13997