mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 15:49:36 +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 )
|
if( GetLabelIndex( pProj->mViewInfo.sel0, pProj->mViewInfo.sel1) != wxNOT_FOUND )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if( pProj )
|
// Add a label
|
||||||
pProj->OnAddLabel();
|
SetSelected(true);
|
||||||
|
AddLabel(pProj->mViewInfo.sel0, pProj->mViewInfo.sel1);
|
||||||
|
pProj->PushState(_("Added label"), _("Label"));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user