mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 03:04:00 +00:00
Fix selection status
This commit is contained in:
parent
b8e4c614f3
commit
09c3d25dcf
|
@ -838,21 +838,24 @@ const float kSemiFloor = -1.0f*kLineH;
|
|||
|
||||
- (void) mouseDown:(NSEvent *)event
|
||||
{
|
||||
fSelEnd = -1;
|
||||
switch ([self findRegionForEvent:event]) {
|
||||
case kRegionNote:
|
||||
fSelEnd = -1;
|
||||
[self addNoteAtCursor];
|
||||
break;
|
||||
case kRegionChord:
|
||||
fSelEnd = -1;
|
||||
[self editChord];
|
||||
break;
|
||||
case kRegionLyrics:
|
||||
fSelEnd = -1;
|
||||
[self editLyrics];
|
||||
break;
|
||||
case kRegionMeasure:
|
||||
[self editSelection:([event modifierFlags] & NSShiftKeyMask) != 0];
|
||||
break;
|
||||
default:
|
||||
fSelEnd = -1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -111,7 +111,7 @@ VLSequenceCallback(
|
|||
|
||||
- (void)editSelection:(BOOL)extend
|
||||
{
|
||||
if (extend && fSelStart > -1) {
|
||||
if (extend && fSelEnd > -1) {
|
||||
if (fCursorMeasure > fSelEnd)
|
||||
fSelEnd = fCursorMeasure;
|
||||
else if (fCursorMeasure < fSelStart)
|
||||
|
|
Loading…
Reference in New Issue
Block a user