jquery/jquery-mobile — Issue #3656: Flip toggle switch in 1.1 not keyboard accessible + focus issues
Author: toddparker
Created: 2012-02-28 04:01:40+00:00
State: open
Labels: 5 - Critical

There is a regression with the flip switch that completely keeps it out of the tabindex. If you go here:
http://jquerymobile.com/test/docs/forms/forms-all.html

1. focus in the search input
2. hit "tab"
3. Focus moves right into the slider's input, completely skipping the flip switch

The focus should be on the whole control (blue glow around the whole thing) and should be flipped via the keyboard's arrow keys. 1.0.1 is keyboard accessible but is lacking the focus class:
http://jquerymobile.com/demos/1.0.1/docs/forms/forms-all.html

If you manually click on the switch to try and give it focus, it sometimes gets the focus class (blue outline), sometimes not. If it get the focus class, it's never pulled off when you focus on another input.

If you click the control and flip it, you'd assume it would have focus regardless of the class, but the arrows don't change the state like it did in 1.0.1