accessibility

Accessibility in javascript form validation

自古美人都是妖i 提交于 2019-12-21 12:22:08
问题 This is an important issue for the blind community which I'm trying to adress. How would I tell blind visitors that the username is taken? My current set-up is not important but for examples case, I've currently got a Jquery implementation that checks the user input against a php script over ajax, which returns a json which I then display on screen in an error field. Very basic, and beyond the scope of my issue as it is working perfectly. But if I'm blind, I won't notice that the username

Text console for development in JAWS?

二次信任 提交于 2019-12-21 12:18:36
问题 I'm working on a web application and I want to make it easy to use via screen reader. Testing stuff in JAWS is time consuming. Is it possible to make JAWS display text instead of reading it? I don't want actually to hear the content during development. I just want to see what would be read by JAWS. 回答1: There is no speech viewer for Jaws, as far as I know. However, you can make it write all speech output to a log file using the "/z" switch. Unfortunately, you cannot view the log file in a

Preventing tab to cycle through address bar

為{幸葍}努か 提交于 2019-12-21 08:05:06
问题 I realize this is probably an accessibility issue that may best be left alone, but I'd like to figure out if it possible to prevent the tab from visiting the address bar in the tabbing cycle. My application has another method of cycling through input areas, but many new users instinctively try to use the tab, and it doesn't work as expected. 回答1: Here's a generic jquery implementation where you don't have to find the max tab index. Note that this code will also work if you add or remove

Javascript keyevent and JAWS screen reader

我怕爱的太早我们不能终老 提交于 2019-12-21 05:51:30
问题 I have an application that does something (eg alert) each time a spacebar is pressed. This works fine if I am not using JAWS screen reader. However, once I load JAWS screen reader, it does not execute alert when I press the spacebar. I need to use JAWS so I need this to work. Here is the code snippet. $(document).keypress(function(event) { var chCode = ('charCode' in event) ? event.charCode : event.keyCode; if (chCode == 32){ //32 is keyCode for spacebar alert("spacebars!!!"); } }); From my

Javascript keyevent and JAWS screen reader

邮差的信 提交于 2019-12-21 05:51:03
问题 I have an application that does something (eg alert) each time a spacebar is pressed. This works fine if I am not using JAWS screen reader. However, once I load JAWS screen reader, it does not execute alert when I press the spacebar. I need to use JAWS so I need this to work. Here is the code snippet. $(document).keypress(function(event) { var chCode = ('charCode' in event) ? event.charCode : event.keyCode; if (chCode == 32){ //32 is keyCode for spacebar alert("spacebars!!!"); } }); From my

onAccessibilityEvent(AccessibilityEvent event) not intercepting notification

≯℡__Kan透↙ 提交于 2019-12-21 05:48:46
问题 In my application I have to catch the new incoming email massage notification and play a video on the screen which describe the event. I'm using the onAccessibilityEvent(AccessibilityEvent event) to listen to the generated notification. I also use the following code for init my AccessibilityService: AccessibilityServiceInfo localAccessibilityServiceInfo = new AccessibilityServiceInfo(); localAccessibilityServiceInfo.eventTypes = AccessibilityEvent.TYPES_ALL_MASK; // AccessibilityEvent.TYPE

Making my hidden radio buttons tabbable/508 Compliant

余生颓废 提交于 2019-12-21 05:15:15
问题 First off, I know there is a duplicate, but I have tried the solution and it does not work for me. So, I need a faux-segmented control to be tabbable, or at least keyboard selectable. Getting the tab key to highlight the button is easy - I just add tabindex="0" To the element I want to be tabbable. Problem is, while I can get it to give the barely perceptible blue outline, I cannot select the button that's highlighted. The solution proposed in the other question was to make my radio buttons

Android TalkBack: Hint overwrites contentDescription

▼魔方 西西 提交于 2019-12-21 05:03:46
问题 I have an EditText like below <EditText android:id="@+id/extUsername" android:layout_width="match_parent" android:layout_height="match_parent" android:contentDescription="Username field" android:hint="Username" /> I want TalkBack to say "Username field" but it says "Username". It ignores contentDescription. Do not tell me to remove hint or contentDescription. I need to use both. Any advices will be appreciated. 回答1: What you want to do is use LabelFor instead. LabelFor allows a visual label

HTML attribute accesskey not working as it should

谁说胖子不能爱 提交于 2019-12-21 05:02:06
问题 So, I'm testing all different HTML tags and attributes, freshing things up a bit, and for some reason, accesskey does not appear to be working. The accesskey attribute is used to assign a key to an element. Depending on your OS, pressing Alt+that key (Windows) or Cmd+that key (Mac) will give focus to that element. Here's a little something: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en

onKeyEvent & Accessibility Service

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-21 04:43:12
问题 My users will be using TalkBack enabled or some other Accessible Service. I would like to capture the onKeyEvent events in our App but the event is dispatched to the enabled Accessibility Services. I have created the following basic Accessibility Service. public class Accessibility_Service extends AccessibilityService { private String TAG = Accessibility_Service.class.getSimpleName(); @Override public boolean onKeyEvent(KeyEvent event) { int action = event.getAction(); int keyCode = event