mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 07:40:23 +02:00
When creating a label by typing, create in the focused track, not the first selected label track.
This commit is contained in:
parent
8ab0148f5d
commit
787d033f4c
@ -1630,8 +1630,11 @@ bool LabelTrack::CaptureKey(wxKeyEvent & event)
|
||||
if( GetLabelIndex( pProj->mViewInfo.sel0, pProj->mViewInfo.sel1) != wxNOT_FOUND )
|
||||
return false;
|
||||
|
||||
if( pProj )
|
||||
pProj->OnAddLabel();
|
||||
// Add a label
|
||||
SetSelected(true);
|
||||
AddLabel(pProj->mViewInfo.sel0, pProj->mViewInfo.sel1);
|
||||
pProj->PushState(_("Added label"), _("Label"));
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user