W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2013

Voiceover detection in JavaScript

From: Bryan Garaventa <bryan.garaventa@whatsock.com>
Date: Thu, 28 Mar 2013 15:10:59 -0700
Message-ID: <CFCDC6A870BC46C7A1A4641E7D4F270F@WAMPAS>
To: <w3c-wai-ig@w3.org>
I've recommended this for use in iOS apps before, but am trying to see if this is also doable using JavaScript in Safari.

Weirdly enough I can't find this documented anywhere by anyone on the web, but this is an important feature for UI morphing within mobile web apps to address accessibility.

Specifically, the following won't work in Safari:

alert( UIAccessibilityIsVoiceOverRunning() );

Which appears to break the running of JavaScript on the page.

So, how is it possible to detect Voiceover within Safari using JavaScript?
Received on Thursday, 28 March 2013 22:11:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:48 UTC