The "textbox" control has the effect of clearing the text after pressing the "ESC" key. How can I cancel this effect, because it will affect me to monitor the event when the "ESC" key is pressed.
The "textbox" control has the effect of clearing the text after pressing the "ESC" key. How can I cancel this effect, because it will affect me to monitor the event when the "ESC" key is pressed.
Hello,
The ribbon:TextBox control only handles Esc if the typed text is different from the text it had when it originally got focus. Otherwise it doesn't handle the Esc key.
If you don't wish to have that behavior, you could make a class that inherits TextBox and override its OnKeyDown method. Don't call the base method if the e.Key is Key.Escape.
Please log in to a validated account to post comments.