xceedsoftware / wpftoolkit

All the controls missing in WPF. Over 1 million downloads.
Other
3.91k stars 878 forks source link

Modal ChildWindow blocks CTRL+ALT character inputs #1783

Open Helmet10 opened 2 months ago

Helmet10 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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