void OnKeyUpEvent(KeyUpEvent evt)
 {
     if (evt.keyCode == KeyCode.Menu)
     {
         if (target.elementPanel != null && target.elementPanel.contextualMenuManager != null)
         {
             target.elementPanel.contextualMenuManager.DisplayMenu(evt, target);
             evt.StopPropagation();
             evt.PreventDefault();
         }
     }
 }
        private void OnKeyUpEvent(KeyUpEvent evt)
        {
            bool flag = evt.keyCode == KeyCode.Menu;

            if (flag)
            {
                bool flag2 = base.target.elementPanel != null && base.target.elementPanel.contextualMenuManager != null;
                if (flag2)
                {
                    base.target.elementPanel.contextualMenuManager.DisplayMenu(evt, base.target);
                    evt.StopPropagation();
                    evt.PreventDefault();
                }
            }
        }