Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ctrl+V accelerator and TextBox paste event not working when replacing TextBox ContextFlyout with custom menu with accelerators #9068

Open
darenm opened this issue Nov 10, 2023 · 0 comments
Labels
area-TextBox TextBox, RichEditBox bug Something isn't working team-Controls Issue for the Controls team

Comments

@darenm
Copy link

darenm commented Nov 10, 2023

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

  1. Run the attached repro
  2. Attempt to paste using Ctrl+V.

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

image

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

@darenm darenm added the bug Something isn't working label Nov 10, 2023
@bpulliam bpulliam added team-Controls Issue for the Controls team area-TextBox TextBox, RichEditBox labels Nov 16, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area-TextBox TextBox, RichEditBox bug Something isn't working team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

2 participants