[Mono-bugs] [Bug 543717] New: KeyEventArgs.SuppressKeyPress Doesn't Work on TabControl with Arrow Keys

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 1 19:21:40 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=543717


           Summary: KeyEventArgs.SuppressKeyPress Doesn't Work on
                    TabControl with Arrow Keys
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: 32bit
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: dglick at dracorp.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Description of Problem:
If a handler for TabControl.KeyDown is set and the
KeyEventArgs.SuppressKeyPress is set to 'true' from within the handler, the key
press still gets to the TabControl. Specifically, if SuppressKeyPress is used
when an arrow key is pressed, the current ab still changes. This problem may be
more widespread - the TabControl may not respond to SuppressKeyPress for any
keys, or the SuppressKeyPress field may be broken altogether.

Steps to reproduce the problem:
1. Create a TabControl with several tabs
2. Add a handler for TabControl.KeyDown
3. Press the right arrow key
4. Watch for the right arrow key in the KeyDown handler and set
SuppressKeyPress when found
5. The active tab still changes to the next tab to the right


Actual Results:
The active tab moves to the right

Expected Results:
Nothing

-- 
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