mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 11:14:00 +00:00
Reset edit targets
This commit is contained in:
parent
7dc46ea1de
commit
8917b3d7cc
|
@ -845,6 +845,7 @@ const float kSemiFloor = -1.0f*kLineH;
|
|||
BOOL extend = ([event modifierFlags] & NSShiftKeyMask) != 0;
|
||||
switch ([self findRegionForEvent:event]) {
|
||||
case kRegionNote:
|
||||
[self setEditTarget:nil];
|
||||
fSelEnd = -1;
|
||||
[self addNoteAtCursor];
|
||||
break;
|
||||
|
@ -861,9 +862,11 @@ const float kSemiFloor = -1.0f*kLineH;
|
|||
}
|
||||
break;
|
||||
case kRegionMeasure:
|
||||
[self setEditTarget:nil];
|
||||
[self editSelection:extend];
|
||||
break;
|
||||
default:
|
||||
[self setEditTarget:nil];
|
||||
fSelEnd = -1;
|
||||
break;
|
||||
}
|
||||
|
@ -929,6 +932,9 @@ const float kSemiFloor = -1.0f*kLineH;
|
|||
case NSBacktabTextMovement:
|
||||
[editable moveToPrev];
|
||||
break;
|
||||
case NSReturnTextMovement:
|
||||
[self setEditTarget:nil];
|
||||
// Fall through
|
||||
default:
|
||||
fHighlightStanza = 0xFFFFFFFF;
|
||||
editable = nil;
|
||||
|
|
Loading…
Reference in New Issue
Block a user