I have a group box containing 4 radio buttons and then 10 regular button. I have Visual Studio's "Tab Order" view enabled here in the screenshot below:
When I run the application and try to tab over everything, the GroupBox (3) gets focus, press Tab, 3.0 (Radio Button #1) gets focus, Press Tab then 4.0 gets focus, 4.1, 4.2 etc.
I tried to search around for a fix, but everything seems to be ASP related.
Related
I'm using AngularJS and have a custom directive for radio buttons so they can be placed anywhere on the site. I'm doing some accessibility work as some of the radio buttons when using JAWS screen reader. The issue I'm having is this: When you tab to a certain radio button groups the radio button does show focus and the screen reader reads the radio button label. However in certain radio button groups the screen reader doesn't read "do not prompt user to "to change the selection press the up or down arrow" as it should. Other radio buttons on my site using this directive do not have this issue. In the instances where this issue occurs you cannot use the arrow keys to change the radio buttons as you can in the fully functioning radio button groups sharing the same directive. However, when you tab past these buggy radio button groups and then do a backwards tab (shift + tab) back the radio button group it functions as it should. It receives focus and the screen reader reads everything out as it should.
I've got a WPF form inside a window and a short series of events like this:
1) 1st form has series of selection buttons
2) Clicking a button brings up a progress bar window over the existing window
3) Progress window closes and 1st form switches to a new 2nd form using page navigation
The problem is that the 2nd form (and the entire window) no longer has any focus and what's really killing me is that the window is no longer getting OnKeyDown() calls (it's still the top winow). If I hit the tab key the first menu option is highlighted and the following key stroke will fire a OnKeyDown(). Also, if I alt-tab to another app and then alt-tab back to my window it will begin receiving OnKeyDown() again.
How do I figure out where the focus is after the dialog?
If you are using navigation then the focus will have switched to the Page that you have navigated to, assuming that it is Focusable.
You can check that by setting up a breakpoint in a Focused event handle for the Page.
Alternatively you can use an explicit control.SetFocus() in the page.Navigated handler.
The reason I ask is: when I run Jaws 12 on IE9 and hit this page: http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/form/_autoComplete.html
Jaws does not automatically switch to forms mode when I tab to the first combobox: US State test 1. It announces that it is an edit combobox but I cannot use down arrow or alt down arrow to navigate through the state options and pick a state. Is this expected behavior?
According to this blog: http://www.paciellogroup.com/blog/2010/10/jaws-support-for-aria/ Jaws is supposed to automatically switch to forms mode for edit inputs and alt down arrow is supposed to drop down the combobox, neither of which seems to be happening...
This is surprising since dijit widgets are supposed to be accessible...am I missing something here?
As a blind jaws user welcome to the wonderful world of cross browser accessibility quirks. I would say Jaws is supposed to automatically switch to forms mode when encountering a dijit combobox. Using Jaws 13 when I tab to the combo box in either Firefox 12 or Google chrome 18 Jaws automatically enters forms mode. If I navigate to the combobox using arrow keys Jaws does not automatically enter forms mode but this is the expected behavior based on the blog entry you have posted. The current computer I am on has IE 7 and I have behavior similar to yours. Forms mode is not entered when I tab to the combobox. Even when I tab to the combobox and hit enter forms mode is not activated. The only way for me to interact with the combobox is to navigate to it with arrow keys then hit enter. Doing this turns on forms mode and allows me to interact with it. I will test with IE 9 when I get a chance and update my answer with my results.
I have two button on form as:
Now when hover the portion common to both button the enabled button shows the mouse hover effect as:
I am not sure why this is done in windows form.
I have checked the same thing in WPF sample it works just fine, There it does not show any effect when we are on disabled button.
If we click on the portion which is common for both button the click for Enabled button is fired.
I want to know why controls have this behavior?
Try putting the disabled button in a panel or a group. Controls aren't really meant to overlap like that, so I expect that the event handler just passes the click through to the enabled button.
In my Windows Mobile project, I have a form (let's call it form M to help keep thing straight) that I need to display modally, so I am using the ShowDialog method on a new copy of the form. When I show it from a form (form A) that takes up the whole screen (WindowState Maximized, Location 0,0, all other properties default except for name, the designer picks this up and shows it without a title bar), it shows up fine with the title bar intact.
However, if I display another modal window on top of this form (form B) that takes up the whole screen and uses the same form properties as form A, and then try to show the modal dialog form M from that form, the title bar is not visible and I can see the top part of form B behind it. Form M also has all default properties except for ControlBox False, and as such shows up in the designer with the title bar.
Any ideas as to what to look for? I have tried just about every combination of manipulating the properties of the parent and modal forms (WindowState, FormBorderStyle, ControlBox, TopMost, etc.) and have not found a combination that works yet.
It exhibits the same behavior both in the Windows Mobile 6 Classic emulator and on my device.
Here is what the form M is supposed to look like, which it does when shown on top of form A:
Good Form http://imagebin.antiyes.com/images/0710161001266357909_33.png
And when form M is displayed on top of form B (and form A):
Bad Form http://imagebin.antiyes.com/images/0020949001266357931_33.png
(These screen captures are taken from my Dell Axim X51V, which has a 480x640 screen.)
This project worked fine in the past, I just converted it from VS2005 to VS2008, and I am wondering of something in the conversion is causing this to happen.
EDIT: I noticed that this is happening with other forms with title bars in my application that try to show on top of form B, and it is exhibiting the same behavior. If when this happens, I press the Calendar hardware button to open up the calendar application, and then press Ctrl+Q (I am using MyMobiler for screen shots and keyboard control of the device), the Calendar window goes away and the form M shows up, this time with the title bar showing just fine.