[Mono-bugs] [Bug 648896] New: KeyEventArgs.KeyCode should use Keycode enum instead of int

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Oct 24 21:00:15 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=648896

https://bugzilla.novell.com/show_bug.cgi?id=648896#c0


           Summary: KeyEventArgs.KeyCode should use Keycode enum instead
                    of int
    Classification: Mono
           Product: MonoDroid
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: mkestner at novell.com
        ReportedBy: gshackles at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


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

It would be useful if the KeyEventArgs class used Keycode instead of int for
specifying the key, to help avoid having to do conversions like this:

_urlText.KeyPress += (sender, e) =>
{
    if (e.KeyCode == (int)Keycode.Enter)
    {
          // ...
    }
};

Reproducible: Always

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


More information about the mono-bugs mailing list