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

V2 of disable caret events in the UIA console #9986

Merged
merged 2 commits into from
Jul 31, 2019

Conversation

codeofdusk
Copy link
Contributor

Link to issue number:

Builds on #9614. Identical to #9985.

Summary of the issue:

Steps to reproduce:

  1. Oepn a UIA console (cmd.exe).
  2. Type echo
  3. Quickly backspace the text.

Expected behavior: NVDA reads the characters being deleted, then nothing once none are left.
Observed behavior: NVDA sometimes reads the last character of the prompt when deleting fast enough.

Description of how this pull request fixes the issue:

This PR disables the caret movement event detection from #9933 for UIA consoles (as with IA2 web).

Testing performed:

Tested above steps and verified that the issue is no longer reproducible.

Known issues with pull request:

Caret events may be useful in consoles, so we may want to look for a better workaround at some stage. This PR at least restores behavior from before py3.

Change log entry:

None.

@codeofdusk
Copy link
Contributor Author

Cc @feerrenrut @LeonarddeR

@LeonarddeR
Copy link
Collaborator

Are you sure disabling events here doesn't cause other side effects that were fixed earlier?
make sure that this is also disabled in the legacy consoles, as they suffer from the same issue.

@codeofdusk
Copy link
Contributor Author

Are you sure disabling events here doesn't cause other side effects that were fixed earlier?
make sure that this is also disabled in the legacy consoles, as they suffer from the same issue.

Caret movement seems functional after the change. Are there specific cases I should test?

@LeonarddeR
Copy link
Collaborator

LeonarddeR commented Jul 29, 2019 via email

@codeofdusk
Copy link
Contributor Author

@feerrenrut @LeonarddeR Works as expected on Windows 10 1803 and 1903.

@feerrenrut feerrenrut merged commit 288af0d into nvaccess:master Jul 31, 2019
@nvaccessAuto nvaccessAuto added this to the 2019.3 milestone Jul 31, 2019
feerrenrut pushed a commit that referenced this pull request Aug 22, 2019
In Mintty, the last character of the prompt was being read when quickly deleting text, just as in Windows Console (see this comment and the "summary of the issue" section in #9986).

This change disables caret events for all Terminal objects by overriding NVDAObjects.behaviors.Terminal._get_caretMovementDetectionUsesEvents, instead of only Windows Console like in #9986.

Closes #1348.
Related to #9933, #9986.
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.

4 participants