1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-28 14:18:41 +02:00

Bug1409: Mac: Restore focus to Contrast after dismissing help window

This commit is contained in:
Paul Licameli 2016-06-21 13:11:35 -04:00
parent 839bb0a6db
commit 7808064ae1
2 changed files with 5 additions and 1 deletions

View File

@ -179,8 +179,10 @@ void HelpSystem::ShowHtmlText(wxWindow *pParent,
pFrame->SetName(Title);
if (bModal)
pWnd->ShowModal();
else
else {
pWnd->Show(true);
pFrame->Show(true);
}
html->SetRelatedStatusBar( 0 );
html->SetFocus();

View File

@ -57,7 +57,9 @@ void BrowserDialog::OnBackward(wxCommandEvent & WXUNUSED(event))
void BrowserDialog::OnClose(wxCommandEvent & WXUNUSED(event))
{
EndModal(wxID_CANCEL);
#ifndef __WXMAC__
GetParent()->Destroy();
#endif
}
void BrowserDialog::OnKeyDown(wxKeyEvent & event)