[Mono-list] Keyboard bug in Mono

Carlos Alberto Cortez calberto.cortez at gmail.com
Tue Jul 28 11:31:55 EDT 2009


Hey,

This is working with 2.4

Carlos.

2009/7/28 LKeene <lionel.keene at gmail.com>

>
> 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  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090728/662e31d4/attachment-0001.html 


More information about the Mono-list mailing list