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
Hi budajeff,
If you have any further questions regarding this approach, please let me know.
Sincerely,Chris KDeveloper Support EngineerInfragistics, Inc.www.infragistics.com/support
I recommend listening for the key activation, for when the tool has focus via the ToolKeyDown event handler, extended from the UltraToolbarsManager.
I have constructed and attached a sample for demonstrating this behavior for both the Enter and Esc keys, for the TextBoxTool.
Please find the sample attached.
If you have any questions regarding this approach, please let me know.