Show-Command popup behind wt window instead of getting focus. #14133

Closed
opened 2026-01-31 04:01:51 +00:00 by claunia · 4 comments
Owner

Originally created by @Fred-Vatin on GitHub (Jun 5, 2021).

Windows Terminal version (or Windows build number)

wt 1.8.1444.0 | Windows 10 x64 10.0.19041.0 | pwsh 7.1.3

Other Software

No response

Steps to reproduce

Run command like Show-Command Get-ChildItem

Expected Behavior

When this command is run in console, the popup gets focus.
(This is animated gif, click on it if it doesn’t animate)
console

Actual Behavior

When the same command is run in wt, the popup doesn’t get focus and is behind wt window.
(This is animated gif, click on it if it doesn’t animate)
wt

Originally created by @Fred-Vatin on GitHub (Jun 5, 2021). ### Windows Terminal version (or Windows build number) wt 1.8.1444.0 | Windows 10 x64 10.0.19041.0 | pwsh 7.1.3 ### Other Software _No response_ ### Steps to reproduce Run command like `Show-Command Get-ChildItem` ### Expected Behavior When this command is run in console, the popup gets focus. (This is animated gif, click on it if it doesn’t animate) ![console](https://user-images.githubusercontent.com/22337329/120889082-d53dea80-c5fb-11eb-8e2e-ded3616715b5.gif) ### Actual Behavior When the same command is run in wt, the popup doesn’t get focus and is behind wt window. (This is animated gif, click on it if it doesn’t animate) ![wt](https://user-images.githubusercontent.com/22337329/120889079-d3742700-c5fb-11eb-83f3-37aa52f0896d.gif)
claunia added the Resolution-Duplicate label 2026-01-31 04:01:51 +00:00
Author
Owner

@KalleOlaviNiemitalo commented on GitHub (Jun 5, 2021):

That's https://github.com/microsoft/terminal/issues/2988, unfortunately difficult to fix.

@KalleOlaviNiemitalo commented on GitHub (Jun 5, 2021): That's <https://github.com/microsoft/terminal/issues/2988>, unfortunately difficult to fix.
Author
Owner

@Fred-Vatin commented on GitHub (Jun 5, 2021):

That's #2988, unfortunately difficult to fix.

For me, only cmdlet using GUI like Show-Command Get-ChildItem or Get-ChildItem | Out-GridView open behind the terminal. For now no issue while opening external app like code $Profile or start .

@Fred-Vatin commented on GitHub (Jun 5, 2021): > That's #2988, unfortunately difficult to fix. For me, only cmdlet using GUI like `Show-Command Get-ChildItem` or `Get-ChildItem | Out-GridView` open behind the terminal. For now no issue while opening external app like `code $Profile` or `start .`
Author
Owner

@Fred-Vatin commented on GitHub (Jun 5, 2021):

Interesting thing. If I use an alternative Out-GridView cmdlet from here, the GUI opens in front.

@Fred-Vatin commented on GitHub (Jun 5, 2021): Interesting thing. If I use an alternative Out-GridView cmdlet from [here](https://devblogs.microsoft.com/powershell/out-gridview-returns/), the GUI opens in front.
Author
Owner

@skyline75489 commented on GitHub (Jun 7, 2021):

Thanks guys for the report. I'll close this and redirect the discussion to #2988 .

@skyline75489 commented on GitHub (Jun 7, 2021): Thanks guys for the report. I'll close this and redirect the discussion to #2988 .
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14133