简体   繁体   English

NVDA屏幕阅读器不适用于大型菜单键盘导航

[英]NVDA screen reader not working with mega menu keyboard navigation

On this page , the keyboard navigation works fine on my megamenu until I start NVDA screen reader: when I activate a menu item by hitting enter on my keyboard, instead of showing the menu panel, my browser opens the last anchor or button right before the menu in the markup. 在此页面上 ,直到我启动NVDA屏幕阅读器,键盘导航都可以在我的游戏机上正常工作:当我通过敲击键盘上的Enter激活菜单项时,而不是显示菜单面板,我的浏览器会打开最后一个锚点或按钮标记中的菜单。 In this case it's the green login button on the upper right corner. 在这种情况下,它是右上角的绿色登录按钮。

Has anyone seen this problem before? 有人看过这个问题吗?

Thank you 谢谢

You may not be in "browse mode." 您可能没有处于“浏览模式”。

Using NVDA (ideally with Firefox or even IE), press the NVDA key (probably Caps-Lock if you are on a laptop) and Space . 使用NVDA(最好在Firefox或IE上使用),按NVDA key (如果是笔记本电脑,则按Caps-Lock NVDA key ),然后按Space Then navigate the page with the Tab key. 然后使用Tab键浏览页面。

Once I switch modes, hitting the Enter key does what I think you want. 切换模式后,按Enter键即可完成我认为想要的操作。

If you are unfamiliar with the different browse modes, take a look at Understanding screen reader interaction modes . 如果您不熟悉其他浏览模式,请参阅了解屏幕阅读器交互模式 This passage may help: 这段话可能会帮助:

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. 通过创建文档的虚拟副本,屏幕阅读器使盲人能够以其他方式在Windows平台上无法与内容进行交互。 This happens because the screen reader intercepts most keypresses before they reach the browser, triggering an interaction with the virtual document instead. 发生这种情况是因为屏幕阅读器会在大多数按键到达浏览器之前对其进行拦截,从而触发与虚拟文档的交互。

From a comment on that 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. 实际上,在虚拟/浏览模式下,当在元素上按下空格或Enter时,某些屏幕阅读器会触发onClick事件处理程序。 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 is a similar resource that re-states much of the same. Windows屏幕阅读器在Web上的工作方式是一种类似的资源,它重述了许多内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM