- Made multi-selection modifier semantics consistent with most OS's out there. See #1255,

please shout if you've got anything against that :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27059 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alexandre Deckner 2008-08-19 10:59:10 +00:00
parent 1d136d5a76
commit c56a21ed62

View File

@ -6276,7 +6276,7 @@ BPoseView::MouseDown(BPoint where)
}
}
bool extendSelection = (modifs & B_SHIFT_KEY) && fMultipleSelection;
bool extendSelection = (modifs & B_COMMAND_KEY) && fMultipleSelection;
CommitActivePose();
@ -6996,12 +6996,12 @@ BPoseView::AddRemoveSelectionRange(BPoint where, bool extendSelection, BPose *po
if ((pose == fSelectionPivotPose) && !extendSelection)
return;
if ((modifiers() & B_COMMAND_KEY) && fSelectionPivotPose) {
if ((modifiers() & B_SHIFT_KEY) && fSelectionPivotPose) {
// Multi Pose extend/shrink current selection
bool select = !pose->IsSelected() || !extendSelection;
// This weird bit of logic causes the selection to always
// center around the pivot point, unless you choose to hold
// down SHIFT, which will unselect between the pivot and
// down COMMAND, which will unselect between the pivot and
// the most recently selected Pose.
if (!extendSelection) {