2

Currently my React component consists of a few labels and one input box. 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.

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. To come out of that mode, we need to use the NVDA key (Default is insert key) + space. 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

Edit Mode: Edit Mode looks like this

Is there a way to prevent NVDA from going into forms mode automatically? Any help would be appreciated.

NVDA Version : 2018.11 Firefox: 60.0.1 (64-bit)

4

1 回答 1

2

我不确定我是否理解问题所在。

您有向后的表单模式。当处于表单模式时(意思是,您处于 a 中<form>),您希望在输入字段等中输入内容。键盘事件转到表单而不是屏幕阅读器,以便您输入的内容就是您所看到的。

当您退出表单模式时,您将返回“屏幕阅读器模式”,您键入的字符将被解释为屏幕阅读器快速导航键(例如“B”转至下一个按钮,“T”转至下一个按钮表等)。

NVDA(和 JAWS)可以选择当焦点转到表单元素时是否自动进入表单模式。

鉴于此,您是否在问如何强制屏幕阅读器切换模式?

于 2018-05-21T19:40:55.003 回答