1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 17:11:12 +02:00

Bug1917: TrackPanel should keep focus after click or drag...

... though ruler won't, and if you start to drag in TrackPanel but abort it
with the ESC key, that too returns focus
This commit is contained in:
Paul Licameli
2018-08-07 10:39:32 -04:00
parent 3f0b3bf1b8
commit 22f85f244b
6 changed files with 35 additions and 15 deletions

View File

@@ -2727,7 +2727,7 @@ void AdornedRulerPanel::OnRecordStartStop(wxCommandEvent & evt)
if (evt.GetInt() != 0)
{
mIsRecording = true;
this->CellularPanel::CancelDragging();
this->CellularPanel::CancelDragging( false );
this->CellularPanel::ClearTargets();
UpdateButtonStates();
@@ -3780,6 +3780,11 @@ void AdornedRulerPanel::UpdateStatusMessage( const wxString &message )
GetProject()->TP_DisplayStatusMessage(message);
}
bool AdornedRulerPanel::TakesFocus() const
{
return false;
}
void AdornedRulerPanel::CreateOverlays()
{
if (!mOverlay)

View File

@@ -466,6 +466,8 @@ private:
void UpdateStatusMessage( const wxString & ) override;
bool TakesFocus() const override;
void CreateOverlays();
// Cooperating objects