accessibility

Buttons and links keyboard triggers

廉价感情. 提交于 2019-12-12 01:46:48
问题 While doing research I came across this statement: Warning: Be careful when marking up links with the button role. Buttons are expected to be triggered using the Space key , while links are expected to be triggered using the Enter key. Does anyone know why a different key is used for buttons / links? Is it ok to trigger using both Space and Enter ? Before reading this I, as a user, would have had no idea when to use Space or Enter . Had a quick look at Google to see what they do. For links

Clear another app's notification via the Accessibility API

纵然是瞬间 提交于 2019-12-12 01:36:33
问题 My app is using the Accessibility API to catch notifications generated by other apps and act on them. I'd like to add a feature where the original notification (generated by some other app) can be cancelled. The usual method of using the notification manager won't work since you have to be the one who created the notification to be able to clear it. The accessibility API lets me read a different app's notification but does it allow you to clear it as well? Thanks! 回答1: No, you cannot clear

Wrong reading order in Narrator

半腔热情 提交于 2019-12-12 01:18:29
问题 I've got a problem with Microsoft Narrator. I've got a WPF fragment like this: <Window x:Class="InlineEditbox.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Narrator test" SizeToContent="WidthAndHeight"> <TextBlock> <Run xml:space="preserve">I want to pay </Run> <InlineUIContainer> <TextBox Width="70" HorizontalContentAlignment="Right">0</TextBox> </InlineUIContainer> <Run xml:space="preserve"> % more<

accessibilityIncrement / Decrement not called

家住魔仙堡 提交于 2019-12-12 01:12:50
问题 I looked and cannot find an answer that works for me. I have subclassed UIControl to create a double-knob slider control. I want each knob to be available for voiceover. To do this, I create UIAccessibilityElements and add them to an array: func addAccessibilityElements() { axKnobs = [] let lowKnob = UIAccessibilityElement(accessibilityContainer: self) lowKnob.accessibilityLabel = doubleKnob ? lowValueKnobAccessibilityLabel : valueKnobAccessibilityLabel lowKnob.accessibilityPath =

Set voice over focus on UITextView

痴心易碎 提交于 2019-12-11 18:27:51
问题 How can I set voice over focus on my element (such like UITextView ) in iOS 6. Is it possible? 回答1: Very simple. Just do this: UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification, textView); Note that it may not work, depending on where and when you use it. If you're trying to set the focus to a particular element from viewDidLoad , the code probably won't work correctly. This is because VoiceOver makes its own attempt to set the VoiceOver focus on an element initially;

Android accessibility in Edit text box text not reading properly/Expect After Talk back on

拟墨画扇 提交于 2019-12-11 17:39:52
问题 I am creating app for blind people. there, when blind people after entered the zip code on that profile registration Edit Text box, like 45987. It reading as Fourty Five Thousand and Nine hundred eighty seven. But, I want to read an Four Five Nine Eight Seven. 4 5 9 8 7. Note: when i tried for the same in TexView, its reading as correctly. only problem with EditText. My Sample Code: zipCode_EditText.setContentDescription("4 5 9 8 7"); I have referred these link: Android Acccessibility: How do

Accessible, 508 compliant Ajax Loading Indicator

末鹿安然 提交于 2019-12-11 17:31:55
问题 How do I make an Ajax Loading Indicator Accessible / 508 compliant. My pre-compliance strategy is like so: initiate ajax request, set timeout to show an indicator(div containing a paragraph with text and a spinner in the center of the screen) if the request doesn't finish within one second, if the indicator is showing when the request is complete, remove indicator. I've tried doing things like setting focus on the indicator text to no avail. JAWS version 9 (which does not support WAI-ARIA) is

Strange behaviour of Firefox 4.01 with x/html and javascript

自作多情 提交于 2019-12-11 17:09:29
问题 I work on web accessibility for blind people interacting with a screen reader Jaws and a vocal synthesizer. I am using x/html with wai-aria and JavaScript to design accessible web pages of a questionnaire user test. In this kind of application, main difficulty is to face with different behaviors on different browsers and also versions of Jaws screen reader generate different behaviors. However, problems started after the release of Firefox 4 (and next 4.01). The same code of a web

How to make screenreader read different text in div

↘锁芯ラ 提交于 2019-12-11 17:03:26
问题 I have a div like this: <div class="whatever">17:03</div> And when someone using a screen reader hovers over that text, I'd like it to read "17 minutes and 3 seconds" What's the standard practice for doing this? 回答1: You can include some additional text for screenreader only: <div class="whatever">17<span class="sr-only"> minutes and </span>:03<span class="sr-only">seconds</span></div> and CSS (taken from Bootstrap 3) .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin:

How to set Accessibility focus to button programmatically in iOS

一笑奈何 提交于 2019-12-11 16:46:42
问题 In iOS, how to set accessibility focus to a button through programmatically? 回答1: You can do this via following notifications: UIAccessibilityLayoutChangedNotification or UIAccessibilityScreenChangedNotification E.g. UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification, yourElement); 回答2: @ClemensL response works great. Here is a Swift 5 version: func setAccessibilityFocus() { UIAccessibility.post(notification: UIAccessibility.Notification.layoutChanged, argument: self) }