mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-12 15:46:25 +01:00
don't create new labels for space
This commit is contained in:
@@ -1892,6 +1892,11 @@ bool LabelTrack::OnChar(double & newSel0, double & newSel1, wxKeyEvent & event)
|
|||||||
|
|
||||||
// If we've reached this point and aren't currently editing, add new label
|
// If we've reached this point and aren't currently editing, add new label
|
||||||
if (mSelIndex < 0) {
|
if (mSelIndex < 0) {
|
||||||
|
// Don't create a new label for a space
|
||||||
|
if (wxIsspace((wxUChar)charCode)) {
|
||||||
|
event.Skip();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
SetSelected(true);
|
SetSelected(true);
|
||||||
AudacityProject *p = GetActiveProject();
|
AudacityProject *p = GetActiveProject();
|
||||||
AddLabel(p->mViewInfo.sel0, p->mViewInfo.sel1);
|
AddLabel(p->mViewInfo.sel0, p->mViewInfo.sel1);
|
||||||
|
|||||||
Reference in New Issue
Block a user