Bug 509985

Summary: Pressing buttons with the keyboard does not work as expected with ToolBarButtons
Product: [Mono] Mono: Class Libraries Reporter: Brian Merrell <bgmerrell>
Component: Windows.FormsAssignee: Mono Bugs <mono-bugs>
Status: RESOLVED FIXED QA Contact: Mono Bugs <mono-bugs>
Severity: Normal    
Priority: P5 - None CC: calberto.cortez
Version: SVN   
Target Milestone: ---   
Hardware: x86   
OS: openSUSE 11.1   
Whiteboard:
Found By: Integration Test Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: IronPython test case application referenced above
IronPython test case application referenced above

Description Brian Merrell 2009-06-04 15:28:34 UTC
Description of Problem:

This was found on Mono WinForms revision 133896.

In Windows I can press ToolBarButtons and drop down ToolBarButtons with the keyboard*.  I cannot do this in Mono on Linux.

Steps to reproduce the problem:

1.  Run the attached (IronPython) test case application
2.  Press the right arrow to focus on the "Push Button" button
3.  Press Enter (or Space) (which should press the button and update the GUI label)
4.  Press the right arrow to focus on the "DropDownButton" drop-down button
5.  Press the down arrow (which should drop down the "DropDownButton" menu)

Actual Results:

Pressing enter when a push button is focused has no effect

Pressing down when a drop down button is focused has no effect

Expected Results:

Pressing enter when a push button is focused should have the effect of clicking it.

Pressing down when a drop down button is focused should drop down the menu.

How often does this happen? 

Every time.

Comments:

* - The "Toggle" toggle button on the ToolBar doesn't appear to be toggled on or off with the keyboard in Windows.

This bug is bad for the accessibility and accessibility tests.
Comment 1 Brian Merrell 2009-06-04 15:35:50 UTC
Created attachment 296275 [details]
IronPython test case application referenced above
Comment 2 Brian Merrell 2009-06-04 15:45:06 UTC
*** Bug 482571 has been marked as a duplicate of this bug. ***
Comment 3 Brian Merrell 2009-06-04 15:45:34 UTC
Created attachment 296277 [details]
IronPython test case application referenced above
Comment 4 Carlos Alberto Cortez 2009-07-02 04:06:09 UTC
This is fixed in rev 137228.

Thanks!
Comment 5 Carlos Alberto Cortez 2009-07-02 04:06:41 UTC
Forgot to mark as resolved.