microsoft / microsoft/terminal

No keyboard input focus after "move tab to new window"

Open
#18,675 4 comments 0 reactions 0 assignees View on GitHub
Area-Windowing Issue-Bug Priority-3 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

If, after "move tab to new window", the old window still exists (still has tabs) it is the foreground window (intended?) but the cursor is not shown. And, in that situation, although other keys are not accepted, [Enter] causes the creation of a new tab.

To reproduce, in a situation like this

![Image](https://github.com/user-attachments/assets/e4505a91-335b-4ff3-a5b5-d466ba0e9da9)

Move one of the tabs to a new window (observe no apparent keyboard focus) ... press [Enter] (get a new tab).

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the tab move in Windows Terminal when the original window still has tabs, then inspect the focus handling for the resulting foreground window. Done means keyboard focus and the visible cursor are restored, and pressing Enter no longer unexpectedly creates a new tab.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.