-
-
Notifications
You must be signed in to change notification settings - Fork 651
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
UI Automation in Windows Console: Remove "Text area", replace isAtLeastWin10, and code cleanup #9761
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to see this pr just focus on actual code changes and comment clarification, rather than code style.
I.e.
- Suppressing the name of the control
- Changing the windows 10 logic
- Renaming WinConsoleUIA
- Clarifying comments
This makes it a lot easier to review and test.
Plus, some of your style changes I find hard to agree with. For example, moving the final bracket up onto the line with the last argument. That is not consistant with other functions/lists split over multiple lines.
Perhaps we can revisit code style later on in this project, but if there was a major issue with styling in the first place, the previous prs would not have been approved. Getting style right in the first place is very good practice, but changing it after the fact tends to introduce bugs and makes it harder to track the history of lines in commits. Though this is just my personal opinion :)
…plicitly clear the word buffer when flushing queued chars.
de686c5
to
eca4a44
Compare
Have you ran with this pr (with the most recent changes) for a while? I just want to ensure this has had enough testing before I merge it. |
I've tested on my machine (during development) and everything seemed fine to me... |
@michaelDCurran Could you please update what's new for these PRs? (remove the old entry from 2019.2 changes and add the one from this description) |
@michaelDCurran Please move the change from bug fixes to changes for developers. Thanks. |
I am confused. I placed it under Changes for Developers for 2019.3 in
changes.t2t.
Are you seeing something different?
Oh, there was a missing blank line... perhaps it was that.
|
Link to issue number:
Builds on #9614.
Summary of the issue:
Currently:
True
if the currently-running version is at least the supplied one. For example, this makes it difficult to enable UIA consoles for Windows 10 1809 and later except 1903.Description of how this pull request fixes the issue:
isAtLeastWin10
function has been renamed toisWin10
. It now takes an optionalatLeast
keyword argument, which defaults toTrue
. The caret movement workarounds have been explicitly enabled for 1903 (not 1903 and later) in anticipation of a possible future Microsoft fix.speech.curWordChars
is once again explicitly cleared whenscript_flushQueuedChars
is called.winConsoleUIA.winConsoleUIA
has been renamed towinConsoleUIA.WinConsoleUIA
to remain consistent with other NVDA classes.Testing performed:
Tested that the console is still functional and that
isWin10
returns expected results on Windows 10 1903.Known issues with pull request:
None.
Change log entry:
== Changes for Developers ==