Skip to content

Support keyboard tooltips in ListViewItem#4405

Merged
RussKie merged 2 commits intodotnet:mainfrom
SergeySmirnov-Akvelon:Issue-4320_ListViewItem_has_no_keyboard_tooltip
Mar 1, 2021
Merged

Support keyboard tooltips in ListViewItem#4405
RussKie merged 2 commits intodotnet:mainfrom
SergeySmirnov-Akvelon:Issue-4320_ListViewItem_has_no_keyboard_tooltip

Conversation

@SergeySmirnov-Akvelon
Copy link
Contributor

@SergeySmirnov-Akvelon SergeySmirnov-Akvelon commented Dec 23, 2020

Fixes #4320

Proposed changes

  • Added support for "IKeyboardToolTip" interface in "ListViewItem" class.
  • Added logic to show the tooltip for the focused ListViewItem when the user switches between items

Customer Impact

Before:
4320-beforefix

After:
4320-afterfix

Regression?

  • No

Risk

  • Minimal

Test methodology

  • Manually

Test environment(s)

  • Microsoft Windows [Version 10.0.19041.388]
  • .NET Core 5.0.100-rc.2.20479.15
Microsoft Reviewers: Open in CodeFlow

@SergeySmirnov-Akvelon SergeySmirnov-Akvelon requested a review from a team as a code owner December 23, 2020 12:10
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon marked this pull request as draft December 23, 2020 12:11
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon force-pushed the Issue-4320_ListViewItem_has_no_keyboard_tooltip branch from 73bd292 to f07efb4 Compare December 23, 2020 14:33
@codecov
Copy link

codecov bot commented Dec 23, 2020

Codecov Report

Merging #4405 (2dc6c6a) into main (e805f92) will increase coverage by 0.00308%.
The diff coverage is 99.45155%.

@@                 Coverage Diff                 @@
##                main       #4405         +/-   ##
===================================================
+ Coverage   97.96079%   97.96387%   +0.00307%     
===================================================
  Files            542         543          +1     
  Lines         263533      264080        +547     
  Branches        4937        4966         +29     
===================================================
+ Hits          258159      258703        +544     
  Misses          4494        4494                 
- Partials         880         883          +3     
Flag Coverage Δ
Debug 97.96387% <99.45155%> (+0.00307%) ⬆️
test 97.96387% <99.45155%> (+0.00307%) ⬆️

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

Comment on lines 1 to 13
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we adding new public API?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you. Reverted

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @JeremyKuhne. Could you please share your opinion about these changes?
Without these changes we see a bug for keyboard tooltip (it is displayed every second time).
Issue-4320-without changes
Keyboard tooltip works correctly with changes
Issue-4320-with changes
Mouse tooltip works correctly with and without changes.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's chat

@SergeySmirnov-Akvelon SergeySmirnov-Akvelon marked this pull request as ready for review January 6, 2021 12:18
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon force-pushed the Issue-4320_ListViewItem_has_no_keyboard_tooltip branch from dd5c010 to 6837145 Compare January 6, 2021 13:19
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon marked this pull request as draft January 11, 2021 07:16
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon force-pushed the Issue-4320_ListViewItem_has_no_keyboard_tooltip branch from 6837145 to edb7766 Compare January 11, 2021 08:52
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon marked this pull request as ready for review January 11, 2021 08:53
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon added the waiting-review This item is waiting on review by one or more members of team label Jan 11, 2021
Copy link
Contributor

@RussKie RussKie left a comment

Choose a reason for hiding this comment

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

LGTM with few stylistic comments. Have you resolved double tooltip issue?

Copy link
Contributor

Choose a reason for hiding this comment

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

[nit] This method should be above IKeyboardToolTip.GetNativeScreenRectangle()
Strive to keep members alphabetised

@RussKie RussKie added waiting-author-feedback The team requires more information from the author and removed waiting-review This item is waiting on review by one or more members of team labels Jan 12, 2021
@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Jan 12, 2021
@SergeySmirnov-Akvelon
Copy link
Contributor Author

LGTM with few stylistic comments. Have you resolved double tooltip issue?

We added logic to hide the keyboard tooltip in the code that is responsible for displaying the mouse tooltip

@SergeySmirnov-Akvelon SergeySmirnov-Akvelon added the waiting-for-testing The PR is awaiting manual testing by the primary team; no action is yet required from the author(s) label Jan 18, 2021
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon force-pushed the Issue-4320_ListViewItem_has_no_keyboard_tooltip branch from 76cfa1d to f6d4919 Compare January 26, 2021 06:43
@RussKie RussKie changed the title [Accessibility] ListViewItem has no keyboard tooltip #4320 Support keyboard tooltips in ListViewItem Jan 29, 2021
Copy link
Contributor

@vladimir-krestov vladimir-krestov left a comment

Choose a reason for hiding this comment

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

Nice work!
Have some refactoring points and points from #4466

Copy link
Contributor

@vladimir-krestov vladimir-krestov left a comment

Choose a reason for hiding this comment

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

Additional points

Base automatically changed from master to main February 1, 2021 04:50
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon force-pushed the Issue-4320_ListViewItem_has_no_keyboard_tooltip branch 4 times, most recently from 366783f to 559dc4d Compare February 8, 2021 08:36
Copy link
Contributor

@vladimir-krestov vladimir-krestov left a comment

Choose a reason for hiding this comment

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

Few comments

@SergeySmirnov-Akvelon SergeySmirnov-Akvelon added the waiting-review This item is waiting on review by one or more members of team label Feb 15, 2021
@RussKie
Copy link
Contributor

RussKie commented Feb 22, 2021

MC, also please resolve resolved comments.

@RussKie RussKie added waiting-author-feedback The team requires more information from the author and removed waiting-review This item is waiting on review by one or more members of team labels Feb 22, 2021
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon force-pushed the Issue-4320_ListViewItem_has_no_keyboard_tooltip branch from e6b7614 to 663c4c3 Compare February 24, 2021 06:58
@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Feb 24, 2021
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon removed the waiting-for-testing The PR is awaiting manual testing by the primary team; no action is yet required from the author(s) label Feb 26, 2021
@SergeySmirnov-Akvelon
Copy link
Contributor Author

CTI approved

RussKie
RussKie previously approved these changes Mar 1, 2021
@RussKie
Copy link
Contributor

RussKie commented Mar 1, 2021

Please clean up the history.

@RussKie RussKie added the waiting-author-feedback The team requires more information from the author label Mar 1, 2021
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon force-pushed the Issue-4320_ListViewItem_has_no_keyboard_tooltip branch from 663c4c3 to e492c4c Compare March 1, 2021 08:46
@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Mar 1, 2021
The issue is reproduced, because when user navigates using keyboard, the message for displaying of the tooltip is not called.

Added support for "IKeyboardToolTip" interface in "ListViewItem" class. Added logic to show the tooltip for the focused ListViewItem when the user switches between items
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon force-pushed the Issue-4320_ListViewItem_has_no_keyboard_tooltip branch from e492c4c to 64c2aec Compare March 1, 2021 08:52
@RussKie RussKie merged commit a4c26da into dotnet:main Mar 1, 2021
@RussKie RussKie deleted the Issue-4320_ListViewItem_has_no_keyboard_tooltip branch March 1, 2021 23:30
@ghost ghost added this to the 6.0 Preview3 milestone Mar 1, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Accessibility] ListViewItem has no keyboard tooltip

3 participants