Added TREE_ITEM_MENU event that gets sent if the

user hits the "Menu" key on the newer keyboards.
   So far generic control only.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2004-12-26 17:37:59 +00:00
parent e01c2b43c4
commit f7c6f947cf
4 changed files with 14 additions and 0 deletions

View File

@@ -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() )