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:
Owen 2017-04-28 22:23:44 +00:00 committed by Axel Dörfler
parent 3582d4fe85
commit 41b0595487
1 changed files with 3 additions and 0 deletions

View File

@ -4069,6 +4069,9 @@ BPoseView::SelectPose(BPose* pose, int32 index, bool scrollIntoView)
ClearSelection();
AddPoseToSelection(pose, index, scrollIntoView);
if (pose != NULL)
fSelectionPivotPose = pose;
}