1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-10 06:37:06 +01:00

Bug844 - Shortcuts that activate play abort recording

Six shortcuts for play after/before selection now added to shortcuts that are disabled if Audio is recording.
This commit is contained in:
James Crook
2015-07-19 18:43:49 +01:00
parent 6351584224
commit c4825967de

View File

@@ -1126,6 +1126,9 @@ void AudacityProject::CreateMenusAndCommands()
c->AddCommand(wxT("Stop"), _("Stop"), FN(OnStop),
AudioIOBusyFlag,
AudioIOBusyFlag);
c->SetDefaultFlags(CaptureNotBusyFlag, CaptureNotBusyFlag);
c->AddCommand(wxT("PlayOneSec"), _("Play One Second"), FN(OnPlayOneSecond), wxT("1"),
CaptureNotBusyFlag,
CaptureNotBusyFlag);
@@ -1142,6 +1145,9 @@ void AudacityProject::CreateMenusAndCommands()
CaptureNotBusyFlag,
CaptureNotBusyFlag);
c->SetDefaultFlags(AlwaysEnabledFlag, AlwaysEnabledFlag);
c->AddCommand(wxT("SelStart"), _("Selection to Start"), FN(OnSelToStart), wxT("Shift+Home"));
c->AddCommand(wxT("SelEnd"), _("Selection to End"), FN(OnSelToEnd), wxT("Shift+End"));