[Mono-bugs] [Bug 539157] New: ProcessCmdKey() fails in Mono (works in

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Sep 14 19:08:50 EDT 2009


           Summary: ProcessCmdKey() fails in Mono (works in
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.4.x
          Platform: x86
        OS/Version: Red Hat 7.0
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: lionel.keene at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/530.5 (KHTML, like Gecko) Chrome/ Safari/530.5

I believe this is a regression bug when going from to The
following simple WinForms app will fail on RedHat:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace KeyPress
    public partial class Form1 : Form
        public Form1()

        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)

            switch (keyData)
                case Keys.F11:
                case Keys.F12:

            return true;

        private void F11ButtonPressed()
            this.Text = "F11 button pressed";

        private void F12ButtonPressed()
            this.Text = "F12 button pressed";


Reproducible: Always

Steps to Reproduce:
1. Compile + run above app
Actual Results:  
Works on Microsoft runtime, fails on Mono + RedHat i.e. application
locks up.

Expected Results:  
WIndow text should change to reflect the key that was pressed.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list