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

Add UIA_AutomationFocusChangedEventId to SelectInternal of the TextBoxBase.cs #12479

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

LeafShi1
Copy link
Member

@LeafShi1 LeafShi1 commented Nov 14, 2024

Fixes #12421

Root Cause:

The highlighted part cannot be read completely because when using the up and down keys to switch options, the AI ​​rectangle does not refocus the current edit text box, but directly switches from the rectangle of the previous option to the current rectangle size, as shown in the figure below

VeriftWithNarrator

So the idea of ​​repairing it is to focus the AI ​​rectangle to the position (0, 0) first when executing CommitValue, and then focus on the new value

Proposed changes

  • Add a check in SelectInternal of the TextBoxBase that when the selected text is (0, 0), let the AI ​​rectangle refocus the current text box

Customer Impact

  • When switching the items by using up/down keyboard arrow that without expand the dropdown list panel, Narrator announced the property item entirety.

Regression?

  • Yes

Risk

  • Minimal

Screenshots

Before

When switching the items by using up/down keyboard arrow that without expand the dropdown list panel, Narrator can not announced the property item entirety.
image

After

When switching the items by using up/down keyboard arrow that without expand the dropdown list panel, Narrator announced the property item entirety.
image

Test methodology

  • Manually

Test environment(s)

  • .net 10.0.0-alpha.1.24562.13
Microsoft Reviewers: Open in CodeFlow

@LeafShi1
Copy link
Member Author

LeafShi1 commented Nov 14, 2024

There have extra "item selected" is announced for BackColor/ForeColor/Cursor property with Narrator when using commit1
the issue doesn't reproduce in NVDA tools

image

Copy link

codecov bot commented Nov 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.73942%. Comparing base (af49f16) to head (598a854).
Report is 23 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #12479         +/-   ##
===================================================
+ Coverage   75.73242%   75.73942%   +0.00699%     
===================================================
  Files           3153        3157          +4     
  Lines         635807      636106        +299     
  Branches       46975       47004         +29     
===================================================
+ Hits          481512      481783        +271     
+ Misses        150870      150866          -4     
- Partials        3425        3457         +32     
Flag Coverage Δ
Debug 75.73942% <100.00000%> (+0.00699%) ⬆️
integration 18.18220% <100.00000%> (-0.07233%) ⬇️
production 49.30429% <100.00000%> (-0.00123%) ⬇️
test 97.04535% <ø> (-0.00459%) ⬇️
unit 46.48974% <85.71429%> (+0.22666%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

---- 🚨 Try these New Features:

@LeafShi1 LeafShi1 added the waiting-review This item is waiting on review by one or more members of team label Nov 15, 2024
@LeafShi1 LeafShi1 marked this pull request as draft November 15, 2024 10:14
@dotnet-policy-service dotnet-policy-service bot added the draft draft PR label Nov 15, 2024
@LeafShi1 LeafShi1 marked this pull request as ready for review November 19, 2024 01:42
@LeafShi1 LeafShi1 removed the draft draft PR label Nov 19, 2024
Copy link
Member

@ricardobossan ricardobossan left a comment

Choose a reason for hiding this comment

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

I proceeded to test the PR code and this was the result:

Captura de tela 2024-11-19 224356
12479

@LeafShi1 LeafShi1 changed the title Override SelectInternal to add UIA_AutomationFocusChangedEventId in PropertyGridView.GridViewTextBox Add UIA_AutomationFocusChangedEventId to SelectInternal of the TextBoxBase.cs Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-review This item is waiting on review by one or more members of team
Projects
None yet
3 participants