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

Fix F6 unable to return from teaching tip in xaml island. #6807

Merged
merged 12 commits into from
Mar 24, 2022

Conversation

StephenLPeters
Copy link
Contributor

@StephenLPeters StephenLPeters commented Mar 9, 2022

There were two issues blocking this functionality in islands scenarios.

First there is a platform bug which caused the PreviewKeyDown event handler to not be hit when focus was in a popup. This issue was fixed in winui3 recently but we will not be porting that fix to system xaml. To work around this we need to attach the handler to the root element in the popup as well as the XamlRoot.Content.

Second, we were using the FocusManager.GetFocusedElement method in the handler which doesn't work in xaml island scenarios. There we need to use the 19h1+ version of the API with the XamlRoot parameter.

I've validated the fix with our test suite for non-islands scenarios. and with a custom WPF app for the island case.

StephenLPeters and others added 2 commits November 1, 2021 19:18
… AcceleratorKeyClicked (when it can) because the later is not available in islands scenarios.
@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Mar 9, 2022
@StephenLPeters StephenLPeters marked this pull request as draft March 9, 2022 23:42
@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ojhad ojhad added area-TeachingTip team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Mar 14, 2022
@StephenLPeters
Copy link
Contributor Author

/azp run

1 similar comment
@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

…lable. Add some comments and remove dead code
@StephenLPeters StephenLPeters marked this pull request as ready for review March 18, 2022 17:44
@StephenLPeters
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-TeachingTip team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants