Skip to content

Commit

Permalink
Clip boundary commands: remove requirement for TrackPanel to be focus
Browse files Browse the repository at this point in the history
When these commands were initially written, they operated on the focused track. This is no longer the case, so I've remove the requirement for the TrackPanel to be the focus.
  • Loading branch information
DavidBailes committed Mar 16, 2018
1 parent 2da227a commit bf9e7fc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Menus.cpp
Expand Up @@ -674,14 +674,14 @@ void AudacityProject::CreateMenusAndCommands()
c->BeginSubMenu(_("Clip B&oundaries"));
c->AddItem(wxT("SelPrevClipBoundaryToCursor"), XXO("Pre&vious Clip Boundary to Cursor"),
FN(OnSelectPrevClipBoundaryToCursor), wxT(""),
TrackPanelHasFocus | WaveTracksExistFlag, TrackPanelHasFocus | WaveTracksExistFlag);
WaveTracksExistFlag, WaveTracksExistFlag);
c->AddItem(wxT("SelCursorToNextClipBoundary"), XXO("Cursor to Ne&xt Clip Boundary"),
FN(OnSelectCursorToNextClipBoundary), wxT(""),
TrackPanelHasFocus |WaveTracksExistFlag, TrackPanelHasFocus | WaveTracksExistFlag);
WaveTracksExistFlag, WaveTracksExistFlag);
c->AddItem(wxT("SelPrevClip"), XXO("Previo&us Clip"), FN(OnSelectPrevClip), wxT("Alt+P"),
WaveTracksExistFlag | TrackPanelHasFocus, WaveTracksExistFlag | TrackPanelHasFocus);
WaveTracksExistFlag, WaveTracksExistFlag);
c->AddItem(wxT("SelNextClip"), XXO("N&ext Clip"), FN(OnSelectNextClip), wxT("Alt+N"),
WaveTracksExistFlag | TrackPanelHasFocus, WaveTracksExistFlag | TrackPanelHasFocus);
WaveTracksExistFlag, WaveTracksExistFlag);

c->EndSubMenu();
/////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -887,9 +887,9 @@ void AudacityProject::CreateMenusAndCommands()
TracksSelectedFlag, TracksSelectedFlag);

c->AddItem(wxT("CursPrevClipBoundary"), XXO("Pre&vious Clip Boundary"), FN(OnCursorPrevClipBoundary), wxT(""),
TrackPanelHasFocus | WaveTracksExistFlag, TrackPanelHasFocus | WaveTracksExistFlag);
WaveTracksExistFlag, WaveTracksExistFlag);
c->AddItem(wxT("CursNextClipBoundary"), XXO("Ne&xt Clip Boundary"), FN(OnCursorNextClipBoundary), wxT(""),
TrackPanelHasFocus | WaveTracksExistFlag, TrackPanelHasFocus | WaveTracksExistFlag);
WaveTracksExistFlag, WaveTracksExistFlag);

c->AddItem(wxT("CursProjectStart"), XXO("&Project Start"), FN(OnSkipStart), wxT("Home"));
c->AddItem(wxT("CursProjectEnd"), XXO("Project E&nd"), FN(OnSkipEnd), wxT("End"));
Expand Down

0 comments on commit bf9e7fc

Please sign in to comment.