SourceGrid.GridVirtual.OnKeyPress C# (CSharp) Method

OnKeyPress() protected method

protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs
return void
        protected override void OnKeyPress(KeyPressEventArgs e)
        {
            base.OnKeyPress(e);

            //Che if is not Tab, Enter or Copy/Paste
            if (Selection.ActivePosition.IsEmpty() || e.KeyChar == '\t' || e.KeyChar == 13 ||
                e.KeyChar == 3 || e.KeyChar == 22 || e.KeyChar == 24)
            {
            }
            else
            {
                Cells.ICellVirtual focusCell = GetCell(Selection.ActivePosition);
                if (focusCell != null)
                    Controller.OnKeyPress(new CellContext(this, Selection.ActivePosition, focusCell), e);
            }
        }