This is a migrated thread and some comments may be shown as answers.

Undo functions

1 Answer 24 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Ezequiel
Top achievements
Rank 1
Ezequiel asked on 20 Mar 2014, 04:17 PM
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. 

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 25 Mar 2014, 07:59 AM
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;
            }
        }


Regards,
Petar Mladenov
Telerik
 

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.

 
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Ezequiel
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or