What else is .Keys doing besides entering characters?
I have an application that I'm testing that uses AJAX to perform validation and perform other events once a value is entered in a field. If I manually type a value in the field, and tab off, the validation and events happen normally. If I use TestComplete (v 10.20.953.7) to enter the value in the field using .Keys, the value is entered in the field and then some other event occurs, triggering the validation (incorrectly for some reason). I'm then doing a .Keys "[Tab]" but that then puts the focus back in the field, (causing another validation error in the field that the focus was just in). I tried using SetText, but that isn't simulating the keystrokes that the app is requiring to trigger the AJAX for some reason. I'm sure there's a problem with the application not handling events correctly, but I need to understand what's going on so that I can have an educated discussion with the developer about what's going wrong.
So my question is, what is .Keys doing after it enters values in the field, and why is it doing more than just that and not leaving the cursor after the last entered character to more closely simulate user interaction?
Thanks in advance for any ressponse. I tried searching for this topic and didn't really come up with anything that answered my question.
Regards,
Joel