UnityEditor.ASHistoryFileView.DeletedItemsRootKeyboard C# (CSharp) Method

DeletedItemsRootKeyboard() private method

private DeletedItemsRootKeyboard ( ASHistoryWindow parentWin ) : void
parentWin ASHistoryWindow
return void
        private void DeletedItemsRootKeyboard(ASHistoryWindow parentWin)
        {
            switch (Event.current.keyCode)
            {
                case KeyCode.UpArrow:
                    this.SelType = SelectionType.Items;
                    if (this.GetLast() != null)
                    {
                        Selection.activeObject = this.GetLast().pptrValue;
                        this.FrameObject(Selection.activeObject);
                    }
                    break;

                case KeyCode.DownArrow:
                    if ((this.m_DelPVstate.selectedItems.Length > 0) && this.DeletedItemsToggle)
                    {
                        this.SelType = SelectionType.DeletedItems;
                        this.m_DelPVstate.selectedItems[0] = true;
                        this.m_DelPVstate.lv.row = 0;
                        this.ScrollToDeletedItem(0);
                    }
                    break;

                case KeyCode.RightArrow:
                    this.DeletedItemsToggle = true;
                    break;

                case KeyCode.LeftArrow:
                    this.DeletedItemsToggle = false;
                    break;

                default:
                    return;
            }
            if (this.SelType != SelectionType.Items)
            {
                parentWin.DoLocalSelectionChange();
            }
            Event.current.Use();
        }