BiomePainter.BitmapSelector.BitmapSelector.ProcessCmdKey C# (CSharp) Method

ProcessCmdKey() protected method

protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg System.Windows.Forms.Message
keyData Keys
return bool
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            switch(keyData)
            {
                case Keys.Left:
                    PanLeft();
                    return true;
                case Keys.Right:
                    PanRight();
                    return true;
                case Keys.Up:
                    PanUp();
                    return true;
                case Keys.Down:
                    PanDown();
                    return true;
                case Keys.Escape:
                    CancelCustomBrush();
                    return true;
            }
            return base.ProcessCmdKey(ref msg, keyData);
        }