[WIN] MAUI Not Returning and Sending Microsoft.UI.Xaml.Input.PreviewKeyDown Event When Subscribed. #23789
Labels
area-xaml
XAML, CSS, Triggers, Behaviors
platform/windows 🪟
s/needs-info
Issue needs more info from the author
s/no-recent-activity
Issue has had no recent activity
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Description
There are two issues here
For Point 1
if the entire layout doesn't have a button control. this will never trigger the event.
For Point 2
We put a button control in the grid and from there onwards, we are able to receive the event but for some reasons, this will only work two times after it successfully invoked.
Steps to Reproduce
MauiApp1.zip
Unzipped the attached file
For Point 1
Go to MainPage.xaml and replace the entire Grid xaml with the following
Run and Debug the project , once page loaded, you can input some keyboard input to see if event was invoked or not.
Expected - PlatformView_PreviewKeyDown is never called
For Point 2
Go to MainPage.xaml and replace the entire Grid xaml with the following
Run and Debug the project , once page loaded, you can input some keyboard input to see if event was invoked or not.
Expected - PlatformView_PreviewKeyDown was Invoked, and it will fail after two times
Link to public reproduction project repository
No response
Version with bug
9.0.0-preview.6.24327.7
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
nil
Relevant log output
No response
The text was updated successfully, but these errors were encountered: