From 41b0595487b62e018d90026bf22b39706e0de4ee Mon Sep 17 00:00:00 2001 From: Owen Date: Fri, 28 Apr 2017 22:23:44 +0000 Subject: [PATCH] Tracker: Fixed shift extension after keyboard selection. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/kits/tracker/PoseView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kits/tracker/PoseView.cpp b/src/kits/tracker/PoseView.cpp index 5c06174dd3..1aaf16ce23 100644 --- a/src/kits/tracker/PoseView.cpp +++ b/src/kits/tracker/PoseView.cpp @@ -4069,6 +4069,9 @@ BPoseView::SelectPose(BPose* pose, int32 index, bool scrollIntoView) ClearSelection(); AddPoseToSelection(pose, index, scrollIntoView); + + if (pose != NULL) + fSelectionPivotPose = pose; }