Skip to content

Fixing incorrect text reporting when hovering mouse over Scintilla controls.#9233

Merged
michaelDCurran merged 5 commits into
nvaccess:masterfrom
DataTriny:notepadPlusPlus_fix
Mar 29, 2019
Merged

Fixing incorrect text reporting when hovering mouse over Scintilla controls.#9233
michaelDCurran merged 5 commits into
nvaccess:masterfrom
DataTriny:notepadPlusPlus_fix

Conversation

@DataTriny

@DataTriny DataTriny commented Feb 3, 2019

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #5450.

Summary of the issue:

When hovering the mouse over Notepad++ text editor, and over any Scintilla control in general, NVDA fails to report the line below the mouse cursor.

Description of how this pull request fixes the issue:

Converts from screen coordinates to client coordinates, in ScintillaTextInfo._getOffsetFromPoint, so that we can get accurate text offset.

Testing performed:

Created a text file containing several lines in Notepad++, hovered the mouse over each line and checked that the reported text was right. Tested both with Notepad++'s window in full screen, maximized as well as in a smaller size.

Known issues with pull request:

None

Change log entry:

Bug fixes

  • NVDA now properly reports the line below the mouse cursor in Notepad++ and other Scintilla based editors.

@dpy013

dpy013 commented Feb 4, 2019

Copy link
Copy Markdown
Contributor

Hi DataTriny Thank you for your contribution I will test it later in the Chinese environment.

@LeonarddeR LeonarddeR left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking this

Comment thread source/NVDAObjects/window/scintilla.py
Comment thread source/NVDAObjects/window/scintilla.py
@dpy013

dpy013 commented Mar 27, 2019

Copy link
Copy Markdown
Contributor

hi
@DataTriny
could you please merge master to fix the failing tests?

@DataTriny

Copy link
Copy Markdown
Contributor Author

Thanks @dingpengyu for the tip!
@LeonarddeR Are your concerns addressed?

@dpy013

dpy013 commented Mar 27, 2019

Copy link
Copy Markdown
Contributor

Thanks @dingpengyu for the tip!
@LeonarddeR Are your concerns addressed?
Yes, the problem has been solved. In addition, when does this PR start to review? Really this PR is very useful in np++.

@DataTriny

Copy link
Copy Markdown
Contributor Author

Actually the delay is mostly my fault as I didn't see the review comments immediately (thanks GitHub notifications).

@michaelDCurran

Copy link
Copy Markdown
Member

@LeonarddeR changes are requested from you. Is that still correct?

@LeonarddeR LeonarddeR left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I missed the fixes to this. It's now ok, go ahead :)

@DrSooom

DrSooom commented Mar 31, 2019

Copy link
Copy Markdown

@michaelDCurran: Please change the milestone from 2019.1 to 2019.2. Thanks.

@DataTriny DataTriny deleted the notepadPlusPlus_fix branch March 31, 2019 19:19
@michaelDCurran michaelDCurran modified the milestones: 2019.1, 2019.2 Mar 31, 2019
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 problem with Notepad++

6 participants