Posted 2 months ago by SPF - Appeon
Version: 22.1.2
Avatar

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 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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.


Actipro Software Support

The latest build of this product (v22.1.3) was released 20 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.