Ctrl+V accelerator and TextBox paste event not working when replacing TextBox ContextFlyout with custom menu with accelerators #9068
Labels
area-TextBox
TextBox, RichEditBox
bug
Something isn't working
team-Controls
Issue for the Controls team
Describe the bug
When replacing the TextBox default ContextFlyout with a custom MenuFlyout, Cut and Copy function as expected, but Paste does not . In the repro attached below, a custom MenuFlyout is attached to a TextBox and Paste no longer functions as expected - the Paste events is not raised, and the Ctrl+V chord is not passed to KeyPressed.
CopyPasteKeys.zip
Steps to reproduce the bug
Expected behavior
Pressing Ctrl+V will raise the TextBox.Paste event and allow it to be Handled and the Ctrl+V chord will be available in the TextBox KeyPressed event.
Screenshots
NuGet package version
WinUI 3 - Windows App SDK 1.4.2: 1.4.231008000
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response
The text was updated successfully, but these errors were encountered: