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:
@@ -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)
|
||||
|
@@ -466,6 +466,8 @@ private:
|
||||
|
||||
void UpdateStatusMessage( const wxString & ) override;
|
||||
|
||||
bool TakesFocus() const override;
|
||||
|
||||
void CreateOverlays();
|
||||
|
||||
// Cooperating objects
|
||||
|
Reference in New Issue
Block a user