Skip to content

Modal ChildWindow blocks CTRL+ALT character inputs #1783

Description

@Helmet10

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.

Activity

  1. XceedBoucherS commented on Sep 26, 2024

    @XceedBoucherS
    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

  2. Helmet10 commented on Sep 27, 2024

    @Helmet10
    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.

  3. XceedBoucherS commented on Sep 27, 2024

    @XceedBoucherS
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions