UnityEditor.AudioMixersTreeView.HandleCommandEvents C# (CSharp) Method

HandleCommandEvents() private method

private HandleCommandEvents ( int treeViewKeyboardControlID ) : void
treeViewKeyboardControlID int
return void
        private void HandleCommandEvents(int treeViewKeyboardControlID)
        {
            if (GUIUtility.keyboardControl == treeViewKeyboardControlID)
            {
                EventType type = Event.current.type;
                switch (type)
                {
                    case EventType.ExecuteCommand:
                    case EventType.ValidateCommand:
                    {
                        bool flag = type == EventType.ExecuteCommand;
                        if ((Event.current.commandName == "Delete") || (Event.current.commandName == "SoftDelete"))
                        {
                            Event.current.Use();
                            if (flag)
                            {
                                ProjectBrowser.DeleteSelectedAssets(true);
                            }
                        }
                        else if (Event.current.commandName == "Duplicate")
                        {
                            Event.current.Use();
                            if (flag)
                            {
                                ProjectWindowUtil.DuplicateSelectedAssets();
                            }
                        }
                        break;
                    }
                }
            }
        }