src/menus/SelectMenus.cpp
// If this returns true, then there was a key up, and nothing more to do,
// after this function has completed.
// (at most this function just does a ModifyState for the keyup)
If this returns true, then there was a key up, and nothing more to do,
after this function has completed.
(at most this function just does a ModifyState for the keyup)
If this returns true then there was a key up and nothing more to do after this function has completed . ( at most this function just does a ModifyState for the keyup )
bool OnlyHandleKeyUp( const CommandContext &context )
{
   auto &project = context.project;
   auto evt = context.pEvt;
   bool bKeyUp = (evt) && evt->GetEventType() == wxEVT_KEY_UP;
   if( ProjectAudioIO::Get( project ).IsAudioActive() )
      return bKeyUp;
   if( !bKeyUp )
      return false;
   ProjectHistory::Get( project ).ModifyState(false);
   return true;
}
bool OnlyHandleKeyUp ( const CommandContext & context ) { auto & project = context . project ; auto evt = context . pEvt ; bool bKeyUp = ( evt ) & & evt -> GetEventType ( ) == wxEVT_KEY_UP ; if ( ProjectAudioIO :: Get ( project ) . IsAudioActive ( ) ) return bKeyUp ; if ( ! bKeyUp ) return false ; ProjectHistory :: Get ( project ) . ModifyState ( false ) ; return true ; }
If this returns true, then there was a key up, and nothing more to do,
after this function has completed.
If this returns true then there was a key up and nothing more to do after this function has completed .