Files
simply_cpq/website/node_modules/@base-ui/utils/platform/screen-reader.js
T
2026-08-07 21:39:30 +02:00

17 lines
719 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.voiceOver = void 0;
var _os = require("./os");
// Whether a screen reader is *actually* running cannot be detected. These flags
// identify platforms where a specific screen reader could be active. VoiceOver
// is the system screen reader on Apple platforms and works with every browser
// there, so the flag is purely an OS check; engine-specific quirks (e.g. the
// NSAccessibility virtual-cursor focus path) should be gated at the call site.
/**
* The user *may* be using VoiceOver — actual activation is not detectable.
* True on any Apple platform (macOS, iOS, iPadOS).
*/
const voiceOver = exports.voiceOver = _os.apple;