App loses focus after displaying modal dialog #7404

Open
opened 2026-01-31 01:03:09 +00:00 by claunia · 0 comments
Owner

Originally created by @LarryBrasfield on GitHub (Apr 14, 2020).

Environment

Windows 10 [Version 10.0.18363.720]
Running TCC (a shell from J.P. Software) v.26.01.35
Windows Terminal Version: 0.10.781.0

Steps to reproduce

Cause the app to put up a modal dialog. For example, when running TCC's list command, by typing 'F' to initiate a search. Dismiss the pop-up.

Expected behavior

I expect focus to be returned to the application window that had it before the modal dialog appeared. In this case, that would be the TCC console. I expect to be able to keep typing and have keystrokes reach the app.

Actual behavior

Focus is given to the WT tab for the TCC instance instead. Typing does nothing. It is necessary to use alt-tab or a left-click in the application pane to return focus there before keystrokes again reach the app.

Possible duplicates

I saw several other bugs relating to lost and misplaced focus, but they were marked as fixed in this WT build. So this is either a new bug or reason to revert one of those others to "needs fixing".

Originally created by @LarryBrasfield on GitHub (Apr 14, 2020). # Environment Windows 10 [Version 10.0.18363.720] Running TCC (a shell from J.P. Software) v.26.01.35 Windows Terminal Version: 0.10.781.0 # Steps to reproduce Cause the app to put up a modal dialog. For example, when running TCC's list command, by typing 'F' to initiate a search. Dismiss the pop-up. # Expected behavior I expect focus to be returned to the application window that had it before the modal dialog appeared. In this case, that would be the TCC console. I expect to be able to keep typing and have keystrokes reach the app. # Actual behavior Focus is given to the WT tab for the TCC instance instead. Typing does nothing. It is necessary to use alt-tab or a left-click in the application pane to return focus there before keystrokes again reach the app. # Possible duplicates I saw several other bugs relating to lost and misplaced focus, but they were marked as fixed in this WT build. So this is either a new bug or reason to revert one of those others to "needs fixing".
claunia added the Resolution-Duplicate label 2026-01-31 01:03:09 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7404