mirror of
https://review.haiku-os.org/haiku
synced 2025-01-19 13:01:29 +01:00
Tracker: Fixed shift extension after keyboard selection.
fixes the bug that caused multi-selection by SHIFT-cliking to fail if an item in the file panel was selected by a key (ticket #13460). If the user tries to select a single item by pressing a key (Left/Right, Up/Down, etc.), the BPoseView::KeyDown() function will call the BPoseView::SelectPose() function, which must set fSelectionPivotPose to the selected item (or pose) because this item might be the starting (or pivot) pose of the next multi-selection by SHIFT-click. Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
This commit is contained in:
parent
3582d4fe85
commit
41b0595487
@ -4069,6 +4069,9 @@ BPoseView::SelectPose(BPose* pose, int32 index, bool scrollIntoView)
|
||||
ClearSelection();
|
||||
|
||||
AddPoseToSelection(pose, index, scrollIntoView);
|
||||
|
||||
if (pose != NULL)
|
||||
fSelectionPivotPose = pose;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user