src/toolbars/TranscriptionToolBar.cpp
// Come here from button clicks only
Come here from button clicks only
Come here from button clicks only
void TranscriptionToolBar::OnPlaySpeed(wxCommandEvent & WXUNUSED(event))
{
   auto button = mButtons[TTB_PlaySpeed];
   const bool cutPreview = mButtons[TTB_PlaySpeed]->WasControlDown();
   const bool looped = !cutPreview &&
      !button->WasShiftDown();
   PlayAtSpeed(looped, cutPreview);
}
void TranscriptionToolBar :: OnPlaySpeed ( wxCommandEvent & WXUNUSED ( event ) ) { auto button = mButtons [ TTB_PlaySpeed ] ; const bool cutPreview = mButtons [ TTB_PlaySpeed ] -> WasControlDown ( ) ; const bool looped = ! cutPreview && ! button -> WasShiftDown ( ) ; PlayAtSpeed ( looped , cutPreview ) ; }
Come here from button clicks only
Come here from button clicks only
// Let control have precedence over shift