1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-05 06:01:04 +01:00

Bug30: During playback, after CTRL+M, chars, ENTER -- restore track focus.

This commit is contained in:
Paul Licameli
2016-01-19 14:51:18 -05:00
parent 3bd4f463f2
commit 116ea61d11
4 changed files with 18 additions and 7 deletions

View File

@@ -204,7 +204,8 @@ class AUDACITY_DLL_API LabelTrack : public Track
const LabelStruct *GetLabel(int index) const;
//This returns the index of the label we just added.
int AddLabel(const SelectedRegion &region, const wxString &title = wxT(""));
int AddLabel(const SelectedRegion &region, const wxString &title = wxT(""),
Track *pRestoreFocus = 0);
//And this tells us the index, if there is a label already there.
int GetLabelIndex(double t, double t1);
@@ -267,6 +268,7 @@ class AUDACITY_DLL_API LabelTrack : public Track
bool mResetCursorPos; /// flag to reset cursor position(used in the dragging the glygh)
bool mRightDragging; /// flag to tell if it's a valid dragging
bool mDrawCursor; /// flag to tell if drawing the cursor or not
Track *mpRestoreFocus; /// Restore focus to this track when done editing
// Set in copied label tracks
double mClipLen;