Skip to content

NVDA seems to apply some kind of extra processing on label text before reading it #13102

@raducoravu

Description

@raducoravu

Steps to reproduce:

I have a problem is with a combo box which holds a history of regular expressions in a Java application, NVDA does not properly read the text for each entry.
As an example I have a Java application which I'm running with the Java access bridge enabled:

public static void main(String[] args) {
JFrame fr = new JFrame("abc");
fr.setSize(500, 500);
JComboBox combo = new JComboBox(new String[] {"abc", "(<image[^>\\n]*)\\n([^>]*>)"});
combo.setEditable(false);
BasicComboBoxRenderer renderer = (BasicComboBoxRenderer) combo.getRenderer();
renderer.putClientProperty( javax.swing.plaf.basic.BasicHTML.propertyKey, null);
combo.putClientProperty( javax.swing.plaf.basic.BasicHTML.propertyKey, null);

fr.getContentPane().add(combo, BorderLayout.CENTER);
 fr.setVisible(true);
}

When I move the focus in the combo drop down list on the second entry NVDA should read "less than image square bracket....". But somehow it skips the content all the way to the first ">". So NVDA might to apply some kind of regular expression which removes what it considers to be "<tags>" from the content before reading it.

Actual behavior:

NVDA does not read the entire content of the "(<image[^>\\n])\n([^>]>)" value set on the label.

Expected behavior:

NVDA should read the label content as it is, as the label is not HTML aware.

System configuration

NVDA installed/portable/running from source:

Yes

NVDA version:

nvda_2019.3.1

Windows version:

10

Other questions

Does the issue still occur after restarting your computer?

Yes

Have you tried any other versions of NVDA? If so, please report their behaviors.

No

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions