mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-06 17:13:49 +01:00
Fix TAB key navigation on Mac for all dialogs (not only for panels)
This commit is contained in:
@@ -26,12 +26,12 @@ the ability to not see similar warnings again for this session.
|
||||
#include <wx/artprov.h>
|
||||
#include <wx/button.h>
|
||||
#include <wx/checkbox.h>
|
||||
#include <wx/dialog.h>
|
||||
#include <wx/intl.h>
|
||||
#include <wx/sizer.h>
|
||||
#include <wx/stattext.h>
|
||||
#include "wxPanelWrapper.h"
|
||||
|
||||
class WarningDialog final : public wxDialog
|
||||
class WarningDialog final : public wxDialogWrapper
|
||||
{
|
||||
public:
|
||||
// constructors and destructors
|
||||
@@ -47,12 +47,12 @@ class WarningDialog final : public wxDialog
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
BEGIN_EVENT_TABLE(WarningDialog, wxDialog)
|
||||
BEGIN_EVENT_TABLE(WarningDialog, wxDialogWrapper)
|
||||
EVT_BUTTON(wxID_OK, WarningDialog::OnOK)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
WarningDialog::WarningDialog(wxWindow *parent, wxString message, bool showCancelButton)
|
||||
: wxDialog(parent, wxID_ANY, (wxString)_("Warning"),
|
||||
: wxDialogWrapper(parent, wxID_ANY, (wxString)_("Warning"),
|
||||
wxDefaultPosition, wxDefaultSize,
|
||||
(showCancelButton ? wxDEFAULT_DIALOG_STYLE : wxCAPTION | wxSYSTEM_MENU)) // Unlike wxDEFAULT_DIALOG_STYLE, no wxCLOSE_BOX.
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user