AGS.Editor.TabbedDocumentManager.ProcessKeyDown C# (CSharp) Метод

ProcessKeyDown() публичный Метод

public ProcessKeyDown ( Keys key ) : bool
key Keys
Результат bool
        public bool ProcessKeyDown(Keys key)
        {
            if ((key == (Keys.Control | Keys.F4)) ||
                (key == (Keys.Control | Keys.W)))
            {
                if (_currentPane != null)
                {
                    RemoveDocument(_currentPane, true);
                }
                return true;
            }
            else if (key == (Keys.Tab | Keys.Control))
            {
                // Cycle through forwards
                if (_panes.Count > 1)
                {
                    _flipThroughPanesIndex++;
                    if (_flipThroughPanesIndex >= _panes.Count)
                    {
                        _flipThroughPanesIndex = 0;
                    }
                    SetActiveDocument(_panesInOrderUsed[_flipThroughPanesIndex], false);
                }
                return true;
            }
            else if (key == (Keys.Tab | Keys.Control | Keys.Shift))
            {
                // Cycle through backwards
                if (_panes.Count > 1)
                {
                    _flipThroughPanesIndex--;
                    if (_flipThroughPanesIndex < 0)
                    {
                        _flipThroughPanesIndex = _panes.Count - 1;
                    }
                    SetActiveDocument(_panesInOrderUsed[_flipThroughPanesIndex], false);
                }
                return true;
            }
            else if (_currentPane != null)
            {
                return _currentPane.Control.KeyPressed(key);
            }
            return false;
        }