new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Electron · API · all subjects

accessibility

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

app.setAccessibilitySupportEnabled() API

The app.setAccessibilitySupportEnabled(enabled) API allows you to manually expose Chrome's accessibility tree to users in the application preferences. The user's system assistive utilities have priority over this setting and will override it.

Accessibility features auto-enable with assistive technology

Electron applications automatically enable accessibility features when assistive technology is detected, such as JAWS on Windows or VoiceOver on macOS.

macOS accessibility toggle via AXManualAccessibility attribute

On macOS, third-party assistive technology can toggle accessibility features inside Electron applications by setting the AXManualAccessibility attribute programmatically using native APIs like AXUIElementSetAttributeValue.

Enable accessibility in Electron using Objective-C example

This Objective-C code enables accessibility in an Electron application: Create an AXUIElementRef using AXUIElementCreateApplication with the process identifier, then call AXUIElementSetAttributeValue with the AXManualAccessibility attribute set to kCFBooleanTrue or kCFBooleanFalse, and release the reference with CFRelease.

Enable accessibility in Electron using Swift example

This Swift code enables accessibility in an Electron application: Get the process identifier from NSWorkspace.shared.runningApplications filtered by localizedName, create an AXUIElementRef using AXUIElementCreateApplication, then call AXUIElementSetAttributeValue with "AXManualAccessibility" as CFString and true as CFTypeRef.

Give your agent this brain