-
Notifications
You must be signed in to change notification settings - Fork 710
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
TeachingTip: Pressing F6 now sets focus on custom content of light-dismissable tip #3545
Closed
Felix-Dev
wants to merge
10
commits into
microsoft:main
from
Felix-Dev:user/Felix-Dev/teachingtip-customcontent-focus-fix
Closed
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d7db9d1
VS inner loop commit.
Felix-Dev 17981a2
Fix custom content not getting focus if no close button exists.
Felix-Dev 84b753d
Add interaction test.
Felix-Dev a6b55d9
Fix merge conflicts.
Felix-Dev c2fdb9b
Change implementation to use FocusManager::GetFocusedElement() instead.
Felix-Dev cbf2934
Merge branch 'master' into user/Felix-Dev/teachingtip-customcontent-f…
Felix-Dev 76a7868
VS innerloop sln auto-update.
Felix-Dev 9e0b41f
fix merge conflicts
Felix-Dev 74d0a68
Update interaction test for changed TeachingTip test UI.
Felix-Dev 6b98833
Move logic into lambda.
Felix-Dev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
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.
Instead of making a seperate else block for this case, can we just expand the lambda that sets the f6Button a bit? something like:
Then we shouldn't need this block at all
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.
@StephenLPeters Moved code into lambda as suggested. Note that I currently am solely using the FocusManager::GetFocusedElement() API to get the previously focused element as as the
GettingFocus
event is not available to all possibly focusably elements (such as a Hyperlink).That said, if you prefer we use the UIElement.GettingFocus API wherever possible (and the documentation suggests this), I can add a check for the f6FocusableElement to see if it is a
UIElement
and if it is, we use the GettingFocus event instead.