X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ad9bb75ff2c6a1734c24742c5f39ed8be197e16d..36edded90cf3d4d11dc55362b332733b79e8f54d:/src/msw/menu.cpp diff --git a/src/msw/menu.cpp b/src/msw/menu.cpp index 1fb674564e..22b89e7b4e 100644 --- a/src/msw/menu.cpp +++ b/src/msw/menu.cpp @@ -150,6 +150,7 @@ void wxMenu::Append(wxMenuItem *pItem) wxAcceleratorEntry *accel = wxGetAccelFromString(pItem->GetText()); if ( accel ) { m_accels.Add(accel); + accel->m_command = pItem->GetId(); } #endif // wxUSE_ACCEL