]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/treectlg.cpp
Added TREE_ITEM_MENU event that gets sent if the
[wxWidgets.git] / src / generic / treectlg.cpp
index a75a6d718399eb2cf18d5c1862d6b43da83b8575..b27512a2427483d13499c55d58ed2735b7af1edf 100644 (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() )