NVDA 在从父级关注 Firefox 时不会首先读取 HTML 个子级

NVDA doesn't read first HTML child when focusing from parent on Firefox

在 Firefox 上使用 NVDA 时,从容器聚焦时无法读取第一个子节点,但可以读取第二个子节点。

一般示例:

<div class="container" tabindex="0">
  <div class="child" aria-label="Child 1" tabindex="0">Child 1</div>
  <div class="child" aria-label="Child 2" tabindex="0">Child 2</div>
</div>

.container 被聚焦时,您按 Tab 键聚焦 "Child 1",NVDA 不会读取 "Child 1",而是保持沉默。如果您再次点击 Tab,NVDA 会读取 "Child 2".

使用 ChromeVox 插件可以在 Chrome 上正确读取。

这是一个代码笔:http://codepen.io/anon/pen/WGyxom

我是否缺少某些配置以允许 NVDA 在从 .container 聚焦时读取 "Child 1"?

如果我没理解错的话,我认为您描述的可能是 NVDA 中的错误。以下是关于 Github 描述此行为的两个错误报告的链接。根据评论链的回复,这听起来像是 "intended":

This would be causing NVDa to read the entire page when it loads and therefore probably leaving focus on the final focusable node. Note that this is not really an issue for most users as they are well aware that focus will move because of the sayAll.

https://github.com/nvaccess/nvda/issues/5230 https://github.com/nvaccess/nvda/issues/3575