1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-02 17:09:26 +02:00

New behaviour for shift when moving mouse reinstated.

This addition was lost by me in a change I made to Paul's code.
This commit is contained in:
james.k.crook@gmail.com 2014-10-26 13:35:17 +00:00
parent 798f2bb938
commit e9ba00ff6d

View File

@ -1709,10 +1709,12 @@ void TrackPanel::SetCursorAndTipWhenSelectTool( Track * t,
return; return;
} }
#endif #endif
// Not shift-down, not snapping center,
// If not shift-down and not snapping center, then
// choose boundaries only in snapping tolerance, // choose boundaries only in snapping tolerance,
// may choose center // and may choose center
SelectionBoundary boundary = ChooseBoundary(event, t, r, true, true); SelectionBoundary boundary = ChooseBoundary(event, t, r, !bShiftDown, !bShiftDown);
#ifdef USE_MIDI #ifdef USE_MIDI
// The MIDI HitTest will only succeed if we are on a midi track, so // The MIDI HitTest will only succeed if we are on a midi track, so
// typically we will fall through. // typically we will fall through.
@ -1734,6 +1736,7 @@ void TrackPanel::SetCursorAndTipWhenSelectTool( Track * t,
switch (boundary) { switch (boundary) {
case SBNone: case SBNone:
if( bShiftDown ){ if( bShiftDown ){
// wxASSERT( false );
// Same message is used for moving left right top or bottom edge. // Same message is used for moving left right top or bottom edge.
*ppTip = _("Click to move selection boundary to cursor."); *ppTip = _("Click to move selection boundary to cursor.");
// No cursor change. // No cursor change.