Skip to content

In 8.6.1, ctrl+dragging an existing selection replaces it instead of copying it #14561

@Coises

Description

@Coises

Description of the Issue

When a selection is present, Ctrl+drag beginning within the selection should copy the selection. Instead, it replaces the selection.

Steps to Reproduce the Issue

  1. Open a new tab and type: one two three four
  2. Double-click two to highlight it.
  3. Hold down the Ctrl key, position the mouse cursor over the w, press the left mouse button down, drag to the space between three and four, release the mouse button then release the Ctrl key.

Expected Behavior

As in 8.6 and prior versions (and most other editing windows), two should be copied to the space between three and four.

Actual Behavior

The original selection is deselected and the area over which the cursor was dragged is selected.

Debug Information

Notepad++ v8.6.1 (64-bit)
Build time : Jan 4 2024 - 05:01:52
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 22H2
OS Build : 19045.3803
Current ANSI codepage : 1252
Plugins : none

Workaround

It is still possible to drag copy by dragging without the Ctrl key (as if you were going to move the text) until the mouse cursor is at the position where you want to place the copy, then pressing the Ctrl key, then releasing the mouse button, then releasing the Ctrl key. However, this is an unexpected change in behavior which differs from the behavior of most edit controls; users may not recognize the need to adopt the new procedure and think it is no longer possible to drag copy at all.

Metadata

Metadata

Assignees

Labels

scintilla dependentCan't be considered for N++ implementation unless/until Scintilla changes

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions