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

Modal ChildWindow blocks CTRL+ALT character inputs #1783

Open
Helmet10 opened this issue Sep 20, 2024 · 3 comments
Open

Modal ChildWindow blocks CTRL+ALT character inputs #1783

Helmet10 opened this issue Sep 20, 2024 · 3 comments

Comments

@Helmet10
Copy link

If you run the ChildWindow with IsModal.

The implementation of OnPreviewKeyDown marks keys LeftAlt and RightAlt as Handled, probably to prevet shortcuts on parent windows to be activated.
This prevents the users for entering all characters requiring CTRL+ALT eg. @ and more.

@XceedBoucherS
Copy link
Collaborator

Hi,
can you tell us which key combination you would be expecting to use what result you be be expecting when using a ChildWindow ?

Thanks

@Helmet10
Copy link
Author

In the current case, the ChildWindow is used to edit person details, and one field was for an e-mail address, but it's not possible to input @ in a textfield, can by copy pasted into the field.

@XceedBoucherS
Copy link
Collaborator

Hum...I see.

Yes, when the ChildWindow is modal, the LeftAlt and RightAlt keys are handled to prevent MenuItem shortcut from being activated.
Could you try to create your own MyChildWindow, deriving from ChildWindow, and override the OnPreviewKeyDown() method to not call it's base method ? This would remove the handling of the Alt keys.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants