Unable to type in textbox even with focus set
<p>I have a flash keyboard (not written by me and I know no flash) which is used by the users to type in to the web forms. The keyboard works fine and I am able to fill the fields properly. </p>

<p>When the keyboard obscures any field, I am scrolling the document (in EnsureNotObscured() method) so that input field is not obscured. This is where I am getting the issue. After scrolling the document, I can see that the input field still has the focus (cursor blinks) but when I type nothing appears.</p>

<p>IF I click the mouse in that field again then I am able to type in that field. What could be the reason for this behavior? I even tried explicitly setting focus using 
document.getElementById(field.id).focus() after scrolling the document in EnsureNotObscured() and still it doesnt work. I even tried doing blur of the field and then setting focus back but no success. </p>
