accessibility

[Android]: TalkBack doesn't speak when AccessibilityEvent is triggered

▼魔方 西西 提交于 2020-01-25 06:12:48
问题 I'm creating a custom view (extending View class) and playing with Accessibility API to understand, how it works. Below is my code, where: I check for MotionEvent equal to ACTION_HOVER_ENTER and then inside it send AccessibilityEvent of type TYPE_VIEW_HOVER_ENTER . I'm catching my AccessibilityEvent in onPopulateAccessibilityEvent . Then I'm adding my custom text into event's text, which is added just fine. As a result, when I hover over my view, all is working fine (confirmed by my logs),

Bug in GNOME's Java-Atk-Wrapper - how to disable accessibility for a Swing component or application?

喜欢而已 提交于 2020-01-24 13:54:51
问题 I believe I found a bug in the Java wrapper for GNOME Accessibility, resulting in a critical performance problem in my Scala/Java applications that use Tree or Table UI. bug bug report I need to avoid that AtkWrapper is listening to my tables and trees. How can I remove the Java Atk Wrapper from my system, or disable it from particular components of my application? 回答1: To disable GNOME accessibility globally, one can use this system property: -Djavax.accessibility.assistive_technologies= 来源:

Setting IE “Optical Zoom” feature using Javascript/CSS

假如想象 提交于 2020-01-24 12:38:05
问题 The site I'm maintaining has been designed pretty rigidly using pixels for font sizes, dimensions, absolute positioning etc. Now there is a feature request to add font resizing by users. While I know that is impossible without redesigning the site from the ground up using relative dimensions, I discovered that the site plays pretty nicely with the IE7/IE8 zoom feature (Ctrl + & Ctrl -). The question is, is there a way to 'suggest' IE to open this site at a default zoom level (of say, 125%)

Mimic JavaFX's ColorAdjust brightness using pure Java

China☆狼群 提交于 2020-01-24 09:30:08
问题 I'm attempting to convert a color image to a useable monochrome image, but without the "jagged" edges. From a similar question asking to convert an image from color to black and white, one of the accepted answers provides a simple trick from JavaFX's ColorAdjust class using a setBrightness(-1) technique. This technique has the benefit of maintaining the soft edges between black and white, such as supporting a high-contrast theme without creating all-new icons set . Note: I do understand the

HTML ARIA validation issues (HTML5)

谁说我不能喝 提交于 2020-01-24 05:22:24
问题 I pretty much make sure my website(s) always validates. So today, after changing a certain item on my website, I ran the W3C validator once again. And suddenly got about 20 errors - which weren't there on thursday (2 days ago). (For my validation I chose HTML5 / UTF8 - just like last time) For some reason I now get a: Element li is missing one or more of the following attributes: aria-checked, aria-expanded, aria-valuemax, aria-valuemin, aria-valuenow, aria-valuetext, role."-error for every

How can restrict the tab key press only within the modal popup when its open?

五迷三道 提交于 2020-01-23 06:46:19
问题 I have a modal popup opened. I have accessibility requirement. So added ARIA related labels. But when i click tab key continuously focus going to the page behind the actual page. Added role="dialog" in html file But when modal opened i want only the focus navigate within the modal popup. Working on Angular4, HTML5 project. Better if we find a solution within HTML file itself . I mean without added any javascript/jQuery related stuffs to prevent this 回答1: You are asking about focus trap , it's

Move accessibility focus programmatically

雨燕双飞 提交于 2020-01-22 18:59:46
问题 Is it possible to move the accessibility focus (VoiceOver for iOS and Talkback for Android) to a defined widget when pressing a button? I've tried searching in the Semantics package but I can't find a way to obtain this. It would be enough also to make the screen reader restart the semantics tree from the beginning. I have a PageView with 3 pages and buttons to move back/forward using a PageController . I would like to move the focus to the beginning of the page when this changes using the

How to access a document's HTML in Firefox using IAccessible

好久不见. 提交于 2020-01-21 05:21:35
问题 I can get an IAccessible object from a Firefox window using this code: Guid guid = new Guid("{618736E0-3C3D-11CF-810C-00AA00389B71}"); object obj = null; int ret = AccessibleObjectFromWindow(hWnd, (uint) OBJID.WINDOW, ref guid, ref obj); Accessibility.IAccessible acc = (Accessibility.IAccessible)obj; However, I'm not sure where to go from here. I need to get the full HTML from the document. I know about the IAccessible.get_accValue() method, but I'm not really sure how to use it in relation

How to access a document's HTML in Firefox using IAccessible

≯℡__Kan透↙ 提交于 2020-01-21 05:21:07
问题 I can get an IAccessible object from a Firefox window using this code: Guid guid = new Guid("{618736E0-3C3D-11CF-810C-00AA00389B71}"); object obj = null; int ret = AccessibleObjectFromWindow(hWnd, (uint) OBJID.WINDOW, ref guid, ref obj); Accessibility.IAccessible acc = (Accessibility.IAccessible)obj; However, I'm not sure where to go from here. I need to get the full HTML from the document. I know about the IAccessible.get_accValue() method, but I'm not really sure how to use it in relation

How to start AccessibilityService?

大憨熊 提交于 2020-01-20 02:40:27
问题 I'm trying to start my implementation of AccessibilityService by using Intent mailAccessabilityIntent = new Intent(this, EmailAccessabilityService.class); startService(mailAccessabilityIntent); My problem is onServiceConnected() never been called. How do i start this service properly? 回答1: Because accessibility services are able to explore and interact with on-screen content, a user has to explicitly enable services in Settings > Accessibility. Once a service is enabled, the system will start