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:
@@ -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() )
|
||||
|
Reference in New Issue
Block a user