terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Clicking in a non-terminal control area should not steal focus from the terminal control

Open oising opened this issue 7 years ago • 10 comments

  • Your Windows build number: (Type ver at a Windows Command Prompt)

18.0.18362.53

  • What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)
  1. start terminal
  2. hit ctrl+t to bring up tabs
  3. click in the space between second tab and "+" and attempt to drag window
  4. window won't drag, but now input is blocked
  5. right click in window area
  6. input is now unblocked.

This is unlikely to occur when the tabs are NOT inlined with the title bar. It is very likely to happen when tabs ARE inlined, as the free space seems like empty title bar area.

  • What's wrong / what should be happening instead:

Either allow window dragging from tabs bar (when inlined), or don't allow window dragging but don't lock up input. Maybe a prompt or tooltip text might help guide the user if dragging is disabled from this area.

oising avatar May 07 '19 17:05 oising

Well that certainly shouldn't be happening.

The part of the tab bar without tabs definitely shouldn't steal focus, so that's certainly a bug.

When the tabs are in the titlebar, that area should be able to drag the window around, but unfortunately there's an existing bug with XAML Islands that prevents that from working.

I'll use this issue to primarily track the first problem, as the second is an external issue.

zadjii-msft avatar May 07 '19 18:05 zadjii-msft

I don't know if this should be a new bug, but it is certainly related to this. I went spelunking for this specific bug, so I'll leave a comment here and then file a new one. When you open Terminal on a screen with standard DPI, the gap between the drop down and the minimize is small, so your dragable surface is small. When you move Terminal to a monitor with an HDPI / 150% scale, that gap goes away entirely and you have to use the small gap between the client area and the minimize button... since you can't use the empty space to drag the terminal. Resolving #528 will mostly solve the problem I'm filing, but I think there is an issue with how the controls are rendered on different scaled monitors.

rbeesley avatar Jun 19 '19 21:06 rbeesley

Side note: on some of those other Windows Apps ... (like Edge) they make the new tab buttons stick right to the right side of the visible tab, so anything to the right of that is dragable. ❤

Also, they make all the tabs the same width so you don't get the whole window taken up when all you have is a couple of PowerShell instances ... but they show up as "C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe" 🤨

Jaykul avatar Jun 22 '19 03:06 Jaykul

@Jaykul I'm with you on the making the '+' bind to the right of the tabs (need more drag space). Same width is a bit tougher since you have an option to set the title to be the directory you are in, so can see this as optional.

Update: Just read #56 which refers to #929 ... looks like the draggable space is being addressed.

Talvish avatar Jun 22 '19 16:06 Talvish

In addition to tooltips, the active tab could be full width. I'm not sure about hover.

@jaykul @talvish

Poopooracoocoo avatar Jun 28 '19 23:06 Poopooracoocoo

@Talvish not sure why it matters how wide the text is. It doesn't seem to matter to my browsers...

Jaykul avatar Jun 29 '19 04:06 Jaykul

@Jaykul looking at my browser right now, if I had as many tabs open in Terminal, every one would say "C:\Wind," and that's about it. To fix this, we really need big-endian directory structures: "System32\Windows\C:" (or is that little?), or maybe we need to start reading RTL. I think this ship may have sailed. Maybe justify the directory name on the working directory, so you'd see something like C:\Windows\[Syste]m32, where the part in the square brackets is the part which is windowed on the tab when it gets small.

rbeesley avatar Jun 29 '19 11:06 rbeesley

I think we've gotten rid of a bunch of ways this might have happened, so I'm gonna close this out for now. Thanks for playing!

DHowett-MSFT avatar Feb 28 '20 21:02 DHowett-MSFT

Version: 1.12.10982.0 Clicking on empty space on tab bar activates window, but does not activate current terminal (keyboard input does not go to terminal).

virgoparna avatar May 05 '22 12:05 virgoparna

@virgoparna This particular version of this bug has been fixed for a couple years now - if you're still seeing this on a new version, then I'm guessing that it's a new variation on this bug and should get a new issue opened to track it. Thanks!

zadjii-msft avatar May 05 '22 13:05 zadjii-msft