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 on background window clears selection #59800

Closed
nudefireninja opened this issue Oct 2, 2018 · 3 comments
Closed

Click on background window clears selection #59800

nudefireninja opened this issue Oct 2, 2018 · 3 comments
Labels
*as-designed Described behavior is as designed

Comments

@nudefireninja
Copy link

  • VSCode Version: Code - Insiders 1.28.0-insider (83d5a29, 2018-10-01T13:24:08.681Z)
  • OS Version: Darwin x64 13.4.0 (Mac OS 10.9)

Steps to Reproduce:

  1. Select some portion of code.
  2. Switch to another window or application.
  3. Click on the original window (somewhere on the code).

Expectation: the clicked window should become active and the previous selection should remain intact.

Reality: the previous selection is cleared and the cursor jumps to the clicked area.

vscode-window-click-selection-bug

Does this issue occur when all extensions are disabled?: Yes

System Info
Item Value
CPUs Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz (8 x 2400)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: unavailable_software
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 1, 1, 1
Memory (System) 8.00GB (0.10GB free)
Process Argv -psn_0_987377
Screen Reader no
VM 0%
@vscodebot vscodebot bot added the insiders label Oct 2, 2018
@vscodebot
Copy link

vscodebot bot commented Oct 2, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@RMacfarlane
Copy link
Contributor

@nudefireninja Thanks for reporting this, but this is by design. Clicking somewhere else in the editor while text is selected is meant to change the cursor selection. If you want to switch back and forth between windows and preserve the text selection, you can use Cmd ~, or click the title bar instead of the editor to focus the window.

@RMacfarlane RMacfarlane added the *as-designed Described behavior is as designed label Oct 2, 2018
@nudefireninja
Copy link
Author

Ok, but it's a strange design decision as no other app does this, code editors or otherwise, and I see no benefit. It simply means I cannot click to activate windows with the mouse if I have text selected that I want to copy for example. I know how to switch windows with the keyboard but that's not always the most convenient (for me anyway).

There are no extensions to change this behavior and there seems to be no way to undo/reselect the last selection. I was looking to switch to a better editor/IDE from TextMate and I think this is a deal breaker for me. I'm leaning toward using Atom now.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*as-designed Described behavior is as designed
Projects
None yet
Development

No branches or pull requests

2 participants