1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 07:43:54 +02:00

Fix TAB key navigation on Mac for all dialogs (not only for panels)

This commit is contained in:
Paul Licameli
2016-07-10 17:10:50 -04:00
parent e0f6ed9972
commit 84c0337aba
79 changed files with 206 additions and 207 deletions

View File

@@ -20,7 +20,6 @@ of languages for Audacity.
#include <wx/defs.h>
#include <wx/button.h>
#include <wx/choice.h>
#include <wx/dialog.h>
#include <wx/intl.h>
#include <wx/msgdlg.h>
#include <wx/sizer.h>
@@ -29,8 +28,9 @@ of languages for Audacity.
#include "LangChoice.h"
#include "Languages.h"
#include "ShuttleGui.h"
#include "widgets/wxPanelWrapper.h"
class LangChoiceDialog final : public wxDialog {
class LangChoiceDialog final : public wxDialogWrapper {
public:
LangChoiceDialog(wxWindow * parent,
wxWindowID id,
@@ -65,14 +65,14 @@ wxString ChooseLanguage(wxWindow *parent)
return returnVal;
}
BEGIN_EVENT_TABLE(LangChoiceDialog, wxDialog)
BEGIN_EVENT_TABLE(LangChoiceDialog, wxDialogWrapper)
EVT_BUTTON(wxID_OK, LangChoiceDialog::OnOk)
END_EVENT_TABLE()
LangChoiceDialog::LangChoiceDialog(wxWindow * parent,
wxWindowID id,
const wxString & title):
wxDialog(parent, id, title)
wxDialogWrapper(parent, id, title)
{
SetName(GetTitle());
GetLanguages(mLangCodes, mLangNames);