mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 15:49:36 +02:00
don't create new labels for space
This commit is contained in:
parent
602c6996ef
commit
9a048f33b1
@ -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 (mSelIndex < 0) {
|
||||
// Don't create a new label for a space
|
||||
if (wxIsspace((wxUChar)charCode)) {
|
||||
event.Skip();
|
||||
return false;
|
||||
}
|
||||
SetSelected(true);
|
||||
AudacityProject *p = GetActiveProject();
|
||||
AddLabel(p->mViewInfo.sel0, p->mViewInfo.sel1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user