WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Unexpected Voiceover Tab Order and Focusing on Hybrid App

for

From: Graham Armfield
Date: Mar 13, 2015 6:11AM


>
> If it's a hybrid app, wouldn't this need use JavaScript's focus() method?
(serious question, as I've not played with building hybrid apps myself).

>Yes, if the issues are in the webview portion of the app then all standard
HTML reading order and focus control mechanisms
>would apply. That is, reading order would be controlled by the order of
the document object model and focus could be set
>with .focus() etc. With hybrid apps it's not always clear what content is
native or web. One trick I use is to turn the rotor -- if I
>see web options in the rotor I know I'm in a web view -- otherwise I am in
a native portion of the app. Both would contain
>heading rotor options if that is in your rotor -- so you can't rely on the
headings option to make this determination.

>Jonathan

Thanks for your comments. The app is indeed hybrid and all the content is
in the right order, and focus() is used to try to set focus. It just seems
as if all that gets 'lost in translation' when the app gets produced from
the original HTML and javascript.


Regards
Graham Armfield



coolfields.co.uk <http://www.coolfields.co.uk/>;
M:07905 590026
T: 01483 856613
@coolfields <https://twitter.com/coolfields>

On Thu, Mar 12, 2015 at 1:25 PM, Jonathan Avila < <EMAIL REMOVED> >
wrote:

> > If it's a hybrid app, wouldn't this need use JavaScript's focus()
> method? (serious question, as I've not played with building hybrid apps
> myself).
>
> Yes, if the issues are in the webview portion of the app then all standard
> HTML reading order and focus control mechanisms would apply. That is,
> reading order would be controlled by the order of the document object model
> and focus could be set with .focus() etc. With hybrid apps it's not always
> clear what content is native or web. One trick I use is to turn the rotor
> -- if I see web options in the rotor I know I'm in a web view -- otherwise
> I am in a native portion of the app. Both would contain heading rotor
> options if that is in your rotor -- so you can't rely on the headings
> option to make this determination.
>
> Jonathan
>
> --
> Jonathan Avila
> Chief Accessibility Officer
> SSB BART Group
> <EMAIL REMOVED>
> Phone 703.637.8957
> Follow us: Facebook | Twitter | LinkedIn | Blog | Newsletter
>
>
>