简体   繁体   English

NVDA 自动切换到 Forms 模式

[英]NVDA automatically switches to Forms Mode

Currently my React component consists of a few labels and one input box.目前我的 React 组件由一些标签和一个输入框组成。 And it has a view mode and en edit mode.它有一个视图模式和一个编辑模式。

When I go into edit mode, NVDA automatically goes into forms mode, due to which I'm not able to enter any text in input box or navigate through labels using arrow keys.当我 go 进入编辑模式时,NVDA 自动进入 forms 模式,因此我无法在输入框中输入任何文本或使用箭头键浏览标签。

By default, on pressing Enter, NVDA goes in forms mode (see NVDA's keyboard shortcuts for forms ) which takes all next keyboard input as shortcut to some command.默认情况下,在按下 Enter 时,NVDA 进入 forms 模式(请参阅NVDA 的键盘快捷键 forms ),它将所有下一个键盘输入作为某些命令的快捷方式。 To come out of that mode, we need to use the NVDA key (Default is insert key) + space.要退出该模式,我们需要使用 NVDA 键(默认为插入键)+ 空格。 After that, we can resume typing.之后,我们可以继续打字。 We are not even able to navigate through arrow key as it begins reading each character.当它开始阅读每个字符时,我们甚至无法通过箭头键进行导航。

Readonly: ReadOnly Looks like this Readonly: ReadOnly 看起来像这样

Edit Mode: Edit Mode looks like this编辑模式:编辑模式看起来像这样

Is there a way to prevent NVDA from going into forms mode automatically?有没有办法防止 NVDA 自动进入 forms 模式? Any help would be appreciated.任何帮助,将不胜感激。

NVDA Version: 2018.11 Firefox: 60.0.1 (64-bit) NVDA 版本:2018.11 Firefox:60.0.1(64 位)

I'm not sure I follow what the question is.我不确定我是否明白问题是什么。

You have forms mode backwards.你有 forms 模式向后。 When in forms mode (meaning, that you're in a <form> ), you want to type stuff into input fields and such.在 forms 模式下(意思是,您处于<form>中),您想在输入字段等中键入内容。 The keyboard events go to the form instead of to the screen reader so that what you type is what you see.键盘事件 go 到表单而不是屏幕阅读器,这样你输入的就是你看到的。

When you exit forms mode, you're back in "screen reader mode" and characters that you type will be interpreted as screen reader quicknav keys (such as 'B' to go to the next button, 'T' to go to the next table, etc).当您退出 forms 模式时,您将返回“屏幕阅读器模式”,您键入的字符将被解释为屏幕阅读器快速导航键(例如“B”到 go 到下一个按钮,“T”到 go 到下一个按钮表等)。

NVDA (and JAWS) have options on whether to automatically go into forms mode when focus goes to a form element. NVDA(和 JAWS)有关于当焦点转到表单元素时是否自动 go 进入 forms 模式的选项。

So given that, are you asking how you can force a screen reader to switch modes?因此,鉴于此,您是否在问如何强制屏幕阅读器切换模式?

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

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