Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report the same formatting when pressing the reportFormatting script multiple times #7990

Closed
wants to merge 1 commit into from

Conversation

michaelDCurran
Copy link
Member

@michaelDCurran michaelDCurran commented Feb 12, 2018

Link to issue number:

Fixes #7869

Summary of the issue:

When pressing the reportFormatting script multiple times, such as for showing the formatting in browseMode, the formatting can be different from the first time you press it.
The reason is that code in the reportFormatting script (or code it calls) may mutate the TextInfo such as expanding to line etc. Which then means that asking for the formatting is asking for a different position.
The reviewPosition could be copied before fetching formatting.

Description of how this pull request fixes the issue:

The reportFormatting script now makes sure to copy the reviewPosition first.

Testing performed:

Followed the steps to reproduce in #7869 with success.

Known issues with pull request:

Change log entry:

Bug fixes:

…before fetching formatting in case this or called code happens to mutate the TextInfo.
@LeonarddeR
Copy link
Collaborator

Might it be an idea to ask @dkager to incorporate this change into #7189 and close this pr in favour of that one?

@michaelDCurran
Copy link
Member Author

Closing in favor of pr #7189 which also touches this code.

dkager added a commit to dkager/nvda that referenced this pull request Feb 13, 2018
@feerrenrut feerrenrut removed their request for review March 11, 2018 23:21
michaelDCurran pushed a commit that referenced this pull request Mar 28, 2018
* Add a "report formatting info for text under this braille cell" command.

* Assign the Alva BC6 secondary cursor routing keys to the new report formatting command.

* Update copyrights.

* Update user guide for the new Alva BC6 key assignment.

* Also use the new report formatting braille command in both Papenmeier drivers.
This removes their "route to and report formatting" behavior. Instead, it now only reports formatting without routing the cursor.

* Address review actions.

* Update user docs.

* Add the report text formatting under braille cell command to the EuroBraille displays.

* Revert browseable message for the report text formatting under braille cell command.

* Incorporate PR #7990.

* Add translator comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The font color retreived in word is different if pressed once than twice
2 participants