Support keyboard tooltips in TreeNode#4466
Merged
RussKie merged 7 commits intodotnet:mainfrom Feb 22, 2021
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4466 +/- ##
===================================================
+ Coverage 97.95443% 97.96837% +0.01393%
===================================================
Files 540 542 +2
Lines 263008 263532 +524
Branches 4919 4937 +18
===================================================
+ Hits 257628 258178 +550
+ Misses 4500 4478 -22
+ Partials 880 876 -4
Flags with carried forward coverage won't be shown. Click here to find out more. |
ea5d89e to
b078b52
Compare
b078b52 to
e0605ee
Compare
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 "TreeNode" class. Added logic to show the tooltip for the focused TreeNode when the user switches between items
44e9567 to
ce3c754
Compare
Contributor
vladimir-krestov
left a comment
There was a problem hiding this comment.
Good work! But it needs to be reworked
src/System.Windows.Forms/src/System/Windows/Forms/KeyboardToolTip.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/KeyboardToolTip.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/TreeNodeCollection.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/TreeNodeCollection.cs
Outdated
Show resolved
Hide resolved
Contributor
vladimir-krestov
left a comment
There was a problem hiding this comment.
Additional points
TreeNode
RussKie
reviewed
Jan 29, 2021
src/System.Windows.Forms/src/System/Windows/Forms/TreeNodeCollection.cs
Outdated
Show resolved
Hide resolved
342e7b6 to
8f8c702
Compare
RussKie
reviewed
Feb 4, 2021
8f8c702 to
d7ef874
Compare
RussKie
suggested changes
Feb 8, 2021
Contributor
RussKie
left a comment
There was a problem hiding this comment.
Tests for the changes? E.g. for GetToolInfoWrapper, GetChildNodes
d7ef874 to
ae4427f
Compare
Contributor
vladimir-krestov
left a comment
There was a problem hiding this comment.
Little refactoring notes
src/System.Windows.Forms/src/System/Windows/Forms/TreeNode.IKeyboardToolTip.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/TreeNode.IKeyboardToolTip.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/TreeNode.IKeyboardToolTip.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/TreeNodeCollection.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/TreeNodeCollection.cs
Outdated
Show resolved
Hide resolved
RussKie
reviewed
Feb 9, 2021
3c493ac to
301e184
Compare
301e184 to
6e6ebbb
Compare
RussKie
reviewed
Feb 15, 2021
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/TreeNodeTests.cs
Show resolved
Hide resolved
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/TreeViewTests.cs
Outdated
Show resolved
Hide resolved
5ab5b91 to
36d4a75
Compare
RussKie
reviewed
Feb 17, 2021
Contributor
There was a problem hiding this comment.
Suggested change
| Assert.True(KeyboardToolTipStateMachine.Instance.TestAccessor().IsToolTracked(treeNode1)); | |
| var accessor = KeyboardToolTipStateMachine.Instance.TestAccessor(); | |
| Assert.True(accessor.IsToolTracked(treeNode1)); |
36d4a75 to
e9f2a7d
Compare
RussKie
reviewed
Feb 17, 2021
Contributor
There was a problem hiding this comment.
Suggested change
| internal class KeyboardToolTipStateMachineTestAccessors : TestAccessor<KeyboardToolTipStateMachine> | |
| internal class KeyboardToolTipStateMachineTestAccessor : TestAccessor<KeyboardToolTipStateMachine> |
Contributor
Author
There was a problem hiding this comment.
Thank you. Fixed typos
e9f2a7d to
e45ae7b
Compare
RussKie
approved these changes
Feb 19, 2021
Contributor
Author
|
CTI approved |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4439
Proposed changes
Customer Impact
Before:

After:

Regression?
Risk
Test methodology
Test environment(s)
Microsoft Reviewers: Open in CodeFlow