Hello all.

I'm testing on Mono 2.0 because our local Linux guy won't install 2.4. The
following works fine on XP + Microsoft .NET, but generates no response on
Red Hat + Mono 2.0. Has anyone else seen this bug? Has it been fixed in the
latest release?:


namespace KetTest
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            bool ButtonHandled = false;

            // Check which key was pressed and alert user:
            switch (keyData)
            {
                case Keys.Left:
                    this.Text = "Left key pressed";
                    ButtonHandled = true;
                    break;

                case Keys.Up:
                    this.Text = "Up key pressed";
                    ButtonHandled = true;
                    break;

                case Keys.Right:
                    this.Text = "Right key pressed";
                    ButtonHandled = true;
                    break;

                case Keys.Down:
                    this.Text = "Down key pressed";
                    ButtonHandled = true;
                    break;
            }

            return ButtonHandled;
        }
    }
}
-- 
View this message in context: 
http://www.nabble.com/Keyboard-bug-in-Mono-tp24689175p24689175.html
Sent from the Mono - General mailing list archive at Nabble.com.

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to