NVDA 屏幕 reader 无法使用大型菜单键盘导航

NVDA screen reader not working with mega menu keyboard navigation

On this page,键盘导航在我的 megamenu 上工作正常,直到我启动 NVDA 屏幕 reader:当我通过按键盘上的 enter 键激活菜单项时,而不是显示菜单面板,我的浏览器打开标记中菜单之前的最后一个锚点或按钮。在本例中,它是右上角的绿色登录按钮。

有没有人见过这个问题?

谢谢

您可能不在 "browse mode."

使用 NVDA(最好使用 Firefox 甚至 IE),按 NVDA key(如果您使用的是笔记本电脑,则可能 Caps-Lock)和 Space。然后使用 Tab 键导航页面。

一旦我切换模式,按 Enter 键就可以完成我认为您想要的操作。

如果您不熟悉不同的浏览模式,请查看 Understanding screen reader interaction modes。这段话可能有帮助:

By creating a virtual copy of the document, screen readers make it possible for blind people to interact with content in ways that would otherwise be impossible on the Windows platform. This happens because the screen reader intercepts most keypresses before they reach the browser, triggering an interaction with the virtual document instead.

来自对此 post 的评论:

Actually some screen readers will fire the onClick event handler when space or enter is pressed on an element while in virtual/browse mode. This is one reason why an element can be activated via the keyboard but not triggered from the keyboard when a screen reader is running.

How Windows Screen Readers Work on the Web 是一个类似的资源,它重复了很多相同的内容。