X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e01c2b43c4c6eec40b6c625e496d920f21ee006d..f7c6f947cf77ebfd11a860e7d07262e6de31e2a1:/src/generic/treectlg.cpp diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index a75a6d7183..b27512a242 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -2653,6 +2653,14 @@ void wxGenericTreeCtrl::OnChar( wxKeyEvent &event ) } break; + case WXK_MENU: + { + wxTreeEvent event( wxEVT_COMMAND_TREE_ITEM_MENU, GetId() ); + event.m_item = m_current; + event.SetEventObject( this ); + GetEventHandler()->ProcessEvent( event ); + break; + } case ' ': case WXK_RETURN: if ( !event.HasModifiers() )