Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click-and-drag does not cause search field to lose focus #17539

Open
Marcono1234 opened this issue Jul 9, 2024 · 1 comment
Open

Click-and-drag does not cause search field to lose focus #17539

Marcono1234 opened this issue Jul 9, 2024 · 1 comment
Labels
Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal.

Comments

@Marcono1234
Copy link

Marcono1234 commented Jul 9, 2024

Windows Terminal version

1.20.11781.0

Windows build number

10.0.19045.4529

Other Software

No response

Steps to reproduce

Settings:

  • "Automatically copy selection to clipboard" (copyOnSelect): false
  • "Automatically focus pane on mouse hover" (focusFollowMouse): false

Steps:

  1. Echo some arbitrary text on the console
    (not needed if for example PowerShell automatically printed its version; or the current working directory)
  2. Open the search: Ctrl Shift F
  3. Click-and-drag to select any of the output from step 1
    ℹ️ Note: Do not perform a separate left click; instead press down the mouse button and directly start dragging your mouse
  4. Try for example to copy the selection with Ctrl C

Expected Behavior

Step 3: The search text field lost focus; the console output got focus
Step 4: You copied your selection to the clipboard

Actual Behavior

Step 3: A text selection is shown for the console output, but the search text field still has focus
Step 4: You did not copy anything because the search text field still has focus

Side note: If instead of click-and-drag you perform a separate click (press and release) first, then the console output properly has focus.

@Marcono1234 Marcono1234 added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Jul 9, 2024
@zadjii-msft
Copy link
Member

Good catch!

@zadjii-msft zadjii-msft added Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Product-Terminal The new Windows Terminal. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Jul 11, 2024
@zadjii-msft zadjii-msft added this to the Terminal v1.22 milestone Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal.
Projects
None yet
Development

No branches or pull requests

2 participants