Undo functions

2 posts, 0 answers
  1. Ezequiel
    Ezequiel avatar
    3 posts
    Member since:
    Mar 2014

    Posted 20 Mar 2014 Link to this post

    Hi there,

    I need that "ESC" key has the same behavior as "Ctrl+Z" Key... In case it is not possible, disable the Undo function for creating an Undo function own.

    Thank you

    Best Regards. 
  2. Petar Mladenov
    Petar Mladenov avatar
    3155 posts

    Posted 25 Mar 2014 Link to this post

    Hello Ezequiel,

    The Undo / Redo functions in RadMaskedInputControls are private. So the option currently for you is to disable their work. This can be achieved with handling PreviewKeyDown event like so:
    private void RadMaskedTextInput_PreviewKeyDown(object sender, KeyEventArgs e)
                if (e.Key == Key.Z && (Keyboard.Modifiers == ModifierKeys.Control))
                    e.Handled = true;

    Petar Mladenov

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

Back to Top