UnityEditor.ASHistoryFileView.DeletedItemsKeyboard C# (CSharp) Method

DeletedItemsKeyboard() private method

private DeletedItemsKeyboard ( ASHistoryWindow parentWin ) : void
parentWin ASHistoryWindow
return void
        private void DeletedItemsKeyboard(ASHistoryWindow parentWin)
        {
            int row = this.m_DelPVstate.lv.row;
            int currSelected = row;
            if (this.DeletedItemsToggle)
            {
                switch (Event.current.keyCode)
                {
                    case KeyCode.UpArrow:
                        if (currSelected <= 0)
                        {
                            this.SelType = SelectionType.DeletedItemsRoot;
                            this.ScrollToDeletedItem(-1);
                            parentWin.DoLocalSelectionChange();
                        }
                        else
                        {
                            currSelected--;
                        }
                        goto Label_01C9;

                    case KeyCode.DownArrow:
                        if (currSelected < (this.m_DelPVstate.lv.totalRows - 1))
                        {
                            currSelected++;
                        }
                        goto Label_01C9;

                    case KeyCode.Home:
                        currSelected = 0;
                        goto Label_01C9;

                    case KeyCode.End:
                        currSelected = this.m_DelPVstate.lv.totalRows - 1;
                        goto Label_01C9;

                    case KeyCode.PageUp:
                        if (!OSX)
                        {
                            currSelected -= (int) (this.m_ScreenRect.height / m_RowHeight);
                            if (currSelected < 0)
                            {
                                currSelected = 0;
                            }
                        }
                        else
                        {
                            this.m_ScrollPosition.y -= this.m_ScreenRect.height;
                            if (this.m_ScrollPosition.y < 0f)
                            {
                                this.m_ScrollPosition.y = 0f;
                            }
                        }
                        goto Label_01C9;

                    case KeyCode.PageDown:
                        if (!OSX)
                        {
                            currSelected += (int) (this.m_ScreenRect.height / m_RowHeight);
                            if (currSelected > (this.m_DelPVstate.lv.totalRows - 1))
                            {
                                currSelected = this.m_DelPVstate.lv.totalRows - 1;
                            }
                        }
                        else
                        {
                            this.m_ScrollPosition.y += this.m_ScreenRect.height;
                        }
                        goto Label_01C9;
                }
            }
            return;
        Label_01C9:
            Event.current.Use();
            if (currSelected != row)
            {
                this.m_DelPVstate.lv.row = currSelected;
                ListViewShared.MultiSelection(null, row, currSelected, ref this.m_DelPVstate.initialSelectedItem, ref this.m_DelPVstate.selectedItems);
                this.ScrollToDeletedItem(currSelected);
                parentWin.DoLocalSelectionChange();
            }
        }