[Mono-list] Keyboard bug in Mono
LKeene
lionel.keene at gmail.com
Tue Jul 28 12:26:07 EDT 2009
Great news! Thank you.
-L
Carlos Alberto wrote:
>
> 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
>>
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
--
View this message in context: http://www.nabble.com/Keyboard-bug-in-Mono-tp24689175p24703064.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list