View Issue Details

IDProjectCategoryView StatusLast Update
0037963LazarusPackagespublic2020-12-20 20:41
ReporterOndrej Pokorny Assigned ToMartin Friebe  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.1 (SVN) 
Fixed in Version2.2 
Summary0037963: Synedit: Selection lost on mouse click
DescriptionI have a selection created either by mouse or keyboard - it doesn't matter. Then I want to reduce it with Shift+LeftMouseClick, the selection is cleared instead of being reduced.
Steps To ReproduceTo reproduce in the IDE, "drag selection" must be enabled (IDE editor options).

Selecting from left to right:
1.)
1.a.) Select a word (e.g. begin) with mouse down on "b" and selecting until "n" (mouse up there).
1.b.) Alternatively, select the word with keyboard (Shift+Right arrow).
2.) Now click with the left mouse button somewhere in between the selection (e.g. between 'e' and 'g').
3.) The selection is cleared (bug). Expected: "be" to be selected.

When selecting from right to left, the effect should be the same, but the selection must be kept from right:
1.)
1.a.) Select a word (e.g. begin) with mouse down on "n" and selecting until "b" (mouse up there).
1.b.) Alternatively, select the word with keyboard (Shift+Left arrow).
2.) Now click with the left mouse button somewhere in between the selection (e.g. between 'e' and 'g').
3.) The selection is cleared (bug). Expected: "gin" to be selected.
TagsNo tags attached.
Fixed in Revision64257
LazTarget2.2
Widgetset
Attached Files

Activities

Martin Friebe

2020-12-20 20:41

manager   ~0127735

Changing selection requires the shift key. Therefore the editor will no longer drag, if the shift key is pressed. This allows the selection to be changed as suggested.

If the shift key is not pressed, then dragging will be awaited, and the selection will be lost.

Issue History

Date Modified Username Field Change
2020-10-21 12:27 Ondrej Pokorny New Issue
2020-10-21 12:27 Ondrej Pokorny Status new => assigned
2020-10-21 12:27 Ondrej Pokorny Assigned To => Martin Friebe
2020-12-20 20:41 Martin Friebe Status assigned => resolved
2020-12-20 20:41 Martin Friebe Resolution open => fixed
2020-12-20 20:41 Martin Friebe Fixed in Version => 2.2
2020-12-20 20:41 Martin Friebe Fixed in Revision => 64257
2020-12-20 20:41 Martin Friebe LazTarget => 2.2
2020-12-20 20:41 Martin Friebe Note Added: 0127735