Posted 2 years ago by SPF - Appeon
Version: 22.1.2

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.

Comments (1)

Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA


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.

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.