accessibility

UITextView Linkable label Accessibility Voice Over Issue

二次信任 提交于 2019-12-22 18:45:12
问题 I have a UITextView and portion of the text is clickable. Link works. When I turn the accessibility feature in settings of the iPhone and turn on Voice over as well, the text of the textview is read out but the link is not working. The accessibility feature on storyboard of the textview is enabled and also link is selected under accessibility attributes and the link does not work when voice over is turned on. I have also tried adding isAccessbilityElement = true to the textview and ended up

Cocoa accessibility API, can I click a window in the background without activating it?

白昼怎懂夜的黑 提交于 2019-12-22 18:38:28
问题 I've been searching forever for a solution to this, so I thought I'd seek out the brainpower of greater minds than mine. I'm developing a Cocoa app that uses the Accessibility API to manipulate another program (it's a hotkey app). The app I'm controlling typically has multiple windows open, with some hidden behind others. What I would like to do, if it's possible, is to send mouse events to windows using the Accessibility API in a way that presses a button in the window without bringing it to

Cocoa accessibility API, can I click a window in the background without activating it?

假如想象 提交于 2019-12-22 18:38:08
问题 I've been searching forever for a solution to this, so I thought I'd seek out the brainpower of greater minds than mine. I'm developing a Cocoa app that uses the Accessibility API to manipulate another program (it's a hotkey app). The app I'm controlling typically has multiple windows open, with some hidden behind others. What I would like to do, if it's possible, is to send mouse events to windows using the Accessibility API in a way that presses a button in the window without bringing it to

How to get accessKeyLabel in WebKit with JavaScript? [duplicate]

萝らか妹 提交于 2019-12-22 10:27:55
问题 This question already has an answer here : Getting the key combination of accesskeys in a browser (1 answer) Closed 5 years ago . accessKeyLabel from what I can tell is not supported in Webkit (but works fine in Firefox) at the time of writing. This snippet shows what happens: <input type="text" accesskey="D" name="dog" id="dog"> var dogInput = document.getElementById('dog'); console.log(dogInput.accessKey); // Firefox, Webkit both output: "D" console.log(dogInput.accessKeyLabel); // Firefox

Adding HTML5 hidden attribute support to jQuery .toggle() method

主宰稳场 提交于 2019-12-22 10:01:48
问题 I'd like to pair HTML5 hidden support with jQuery's .toggle() method. So given <p id="myElement">Hi there</p> $('#myElement').toggle() would hide the element, and set hidden="hidden" : <p id="myElement" style="display: none;" hidden="hidden">Hi there</p> And executing the same $('#myElement').toggle() script again would show (toggle) the element, and remove the hidden="hidden" property (it is a boolean): <p id="myElement" style="display: inline">Hi there</p> I probably want to use the

How do I turn off the Accessibility Inspector in the iOS 9 simulator?

六眼飞鱼酱① 提交于 2019-12-22 09:58:08
问题 The accessibility inspector is turned on by my KIF tests (apparently it's necessary for KIF to work.) Problem is, its window occludes controls some subsequent UI tests need to tap on and those tests fail. How can I turn the Accessibility Inspector off when my KIF tests are done with it so my UI Tests can run? (Turning it off "manually" from the simulator's Settings app is not a solution—I'm looking for something I can call from code, set in the target or...?) 回答1: It is not on by default. You

How do i tell a screen reader that a link is disabled

你说的曾经没有我的故事 提交于 2019-12-22 08:38:20
问题 I have a page with n sections. The sections are hidden and can only be shown by clicking their respective links. On page load only the 1st link is active and the rest n-1 links are href="#" . Based on some logic the other links are activated individually. Now my question is, how do I make a screen reader understand that the link is disabled or deactivate ? 回答1: Assuming you would want screen readers to know that they are there, just disabled, I would use a button or link like so: <button

Flash and Accessibility

前提是你 提交于 2019-12-22 08:35:08
问题 As a web developer, a number of the projects I work on fall under government umbrellas and hence are subject to 508 Accessibility laws, and sometimes W3C accessibility guidelines. To what extent can Flash be used while still meeting these requirements? For using javascript, the mantra is "Degrade gracefully" by providing the same content and function, just on different pages, or in a less interactive/dynamic way. This allows non-javascript browsers/users still use the site, as well as

Customize Button shape in ios 7.1

只谈情不闲聊 提交于 2019-12-22 07:55:12
问题 Apple has added Button shape feature in ios 7.1. But I need to make it disable for my app or change its default color, shape to match UI of my app. It is possible without using custom type button? Please help me. 回答1: Sub class the button and try which shape you want.... #import "YourButton.h" #import <QuartzCore/QuartzCore.h> @implementation YourButton - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { // Initialization code } return self; } - (void

How to fade in an entire web page — accessibly

爷,独闯天下 提交于 2019-12-22 06:50:00
问题 A client has asked that their home page begin blank (only the logo and background image visible) and then fade in the navigation and content after a second or two. I could start with the content hidden via CSS and fade it in with jQuery. Unfortunately this violates progressive enhancement: the site would be completely unusable until active code runs, causing problems for the visually impaired using screen readers, among others. The two work-arounds I've considered are Flash and the <noscript>