mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-21 14:50:06 +02:00
Bug 2580: move to label commands in unexpected menu
Fix: In the Extra menu, move the move to label commands from the play-at-speed sub menu to the selection sub menu.
This commit is contained in:
parent
b8188714db
commit
eb1104445c
@ -1253,17 +1253,7 @@ BaseItemSharedPtr ExtraPlayAtSpeedMenu()
|
|||||||
Command( wxT("PlaySpeedInc"), XXO("&Increase Playback Speed"),
|
Command( wxT("PlaySpeedInc"), XXO("&Increase Playback Speed"),
|
||||||
FN(OnPlaySpeedInc), CaptureNotBusyFlag() ),
|
FN(OnPlaySpeedInc), CaptureNotBusyFlag() ),
|
||||||
Command( wxT("PlaySpeedDec"), XXO("&Decrease Playback Speed"),
|
Command( wxT("PlaySpeedDec"), XXO("&Decrease Playback Speed"),
|
||||||
FN(OnPlaySpeedDec), CaptureNotBusyFlag() ),
|
FN(OnPlaySpeedDec), CaptureNotBusyFlag() )
|
||||||
|
|
||||||
// These were on the original transcription toolbar.
|
|
||||||
// But they are not on the
|
|
||||||
// shortened one.
|
|
||||||
Command( wxT("MoveToPrevLabel"), XXO("Move to &Previous Label"),
|
|
||||||
FN(OnMoveToPrevLabel),
|
|
||||||
CaptureNotBusyFlag() | TrackPanelHasFocus(), wxT("Alt+Left") ),
|
|
||||||
Command( wxT("MoveToNextLabel"), XXO("Move to &Next Label"),
|
|
||||||
FN(OnMoveToNextLabel),
|
|
||||||
CaptureNotBusyFlag() | TrackPanelHasFocus(), wxT("Alt+Right") )
|
|
||||||
) ) };
|
) ) };
|
||||||
return menu;
|
return menu;
|
||||||
}
|
}
|
||||||
@ -1273,6 +1263,27 @@ AttachedItem sAttachment3{
|
|||||||
Shared( ExtraPlayAtSpeedMenu() )
|
Shared( ExtraPlayAtSpeedMenu() )
|
||||||
};
|
};
|
||||||
|
|
||||||
|
BaseItemSharedPtr ExtraSelectionItems()
|
||||||
|
{
|
||||||
|
using Options = CommandManager::Options;
|
||||||
|
static BaseItemSharedPtr items{
|
||||||
|
(FinderScope{ findCommandHandler },
|
||||||
|
Items(wxT("MoveToLabel"),
|
||||||
|
Command(wxT("MoveToPrevLabel"), XXO("Move to Pre&vious Label"),
|
||||||
|
FN(OnMoveToPrevLabel),
|
||||||
|
CaptureNotBusyFlag() | TrackPanelHasFocus(), wxT("Alt+Left")),
|
||||||
|
Command(wxT("MoveToNextLabel"), XXO("Move to Ne&xt Label"),
|
||||||
|
FN(OnMoveToNextLabel),
|
||||||
|
CaptureNotBusyFlag() | TrackPanelHasFocus(), wxT("Alt+Right"))
|
||||||
|
)) };
|
||||||
|
return items;
|
||||||
|
}
|
||||||
|
|
||||||
|
AttachedItem sAttachment4{
|
||||||
|
{ wxT("Optional/Extra/Part1/Select"), { OrderingHint::End, {} } },
|
||||||
|
Shared(ExtraSelectionItems())
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef FN
|
#undef FN
|
||||||
|
Loading…
x
Reference in New Issue
Block a user