Skip to content

Fixing browse mode not reporting the whole content of a form field if it's not an editable text#9401

Merged
michaelDCurran merged 4 commits into
nvaccess:masterfrom
DataTriny:browsemode_formfield_fix
Mar 28, 2019
Merged

Fixing browse mode not reporting the whole content of a form field if it's not an editable text#9401
michaelDCurran merged 4 commits into
nvaccess:masterfrom
DataTriny:browsemode_formfield_fix

Conversation

@DataTriny

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #9388

Summary of the issue:

When navigating through form fields using browse mode's quick navigation, NVDA only reports the first line even if we are dealing with elements that should not be splitted apart such as buttons.

Description of how this pull request fixes the issue:

  • Inside TextInfoQuickNavItem.report() if we are dealing with a formField, examine its real control type to determine whether we should report the whole content.

  • When initializing the quick navigation gesture for form fields, don't specify anymore that we want to only read the first line.

Testing performed:

Navigated inside an HTML page containing a form with various elements with long texts, made sure that those texts were shortened only for editable texts.

Known issues with pull request:

None

Change log entry:

Section: Bug fixes

  • When using quick navigation inside forms, NVDA will no longer break the content of non editable text elements.

@DrSooom

DrSooom commented Mar 23, 2019

Copy link
Copy Markdown

@DataTriny: What do you think about the HTML5 tags <details> and <summary>? Maybe an option to enable/disable this new function via the Browse Mode NVDA Settings could help here regarding too much content within the <summary> tag.

@DataTriny

DataTriny commented Mar 23, 2019

Copy link
Copy Markdown
Contributor Author

@DrSooom The problem with <details> containing a <summary> tag is that they are reported as buttons (at least in Firefox and Chrome), so I doubt that we could handle them in a specific way. With this PR, the entire content of a <summary> will be reported. In my opinion this is not particularely bad because these tags are not meants to hold long pieces of text, and you just have to press f to get rid of them. But maybe others have different opinions? Let's hear them then!

@michaelDCurran michaelDCurran merged commit d414e28 into nvaccess:master Mar 28, 2019
@nvaccessAuto nvaccessAuto added this to the 2019.1 milestone Mar 28, 2019
@michaelDCurran michaelDCurran modified the milestones: 2019.1, 2019.2 Mar 31, 2019
@DataTriny DataTriny deleted the browsemode_formfield_fix branch April 10, 2019 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NVDA skips button text at the end of the line

4 participants