X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/906c935a80b10d53cecf57f71ab5f3f4f1d529ec..12bb29f5432174ecbd65549bda832d70d34a98ae:/src/motif/window.cpp diff --git a/src/motif/window.cpp b/src/motif/window.cpp index 01bac12813..a3db88113b 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -1692,7 +1692,7 @@ bool wxWindow::ProcessAccelerator(wxKeyEvent& event) wxMenuItem* item = frame->GetMenuBar()->FindItem(entry->GetCommand()); if (item) { - wxCommandEvent commandEvent(wxEVT_COMMAND_MENU_SELECTED, entry->GetCommand()); + wxCommandEvent commandEvent(wxEVT_MENU, entry->GetCommand()); commandEvent.SetEventObject(frame); // If ProcessEvent returns true (it was handled), then @@ -1714,7 +1714,7 @@ bool wxWindow::ProcessAccelerator(wxKeyEvent& event) // For now, only buttons. if ( wxDynamicCast(child, wxButton) ) { - wxCommandEvent commandEvent (wxEVT_COMMAND_BUTTON_CLICKED, child->GetId()); + wxCommandEvent commandEvent (wxEVT_BUTTON, child->GetId()); commandEvent.SetEventObject(child); return child->HandleWindowEvent(commandEvent); }