Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
BeforeToolExitEditModeEventArgs.CancelingEditMode true when Enter key pressed
posted

I have a TextBoxTool on a toolbar. I want to know if the user hit the Enter key or the Escape key after entering some text.

My problem is that in the BeforeToolExitEditMode handler the CancelingEditMode property is true regardless of whether I press the Enter key or the Escape key. I was expecting this property to be false if I hit the Enter key.

How can I tell when the user presses the Enter key after entering some text in a TextBoxTool?

Thanks