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
- Open a new tab and type:
one two three four
- Double-click
two to highlight it.
- 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.
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
one two three fourtwoto highlight it.w, press the left mouse button down, drag to the space betweenthreeandfour, release the mouse button then release the Ctrl key.Expected Behavior
As in 8.6 and prior versions (and most other editing windows),
twoshould be copied to the space betweenthreeandfour.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.