tags:

views:

31

answers:

2

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.

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.

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.

+1  A: 

Sorry I can't post this as a comment (not enough rep)

But does this same behavior happen in all browsers? I know I've had issues before with focus and scrolling with the mouse wheel in IE, but if I remember correctly this issue didn't happen in other browsers.

If it's just IE, I may be able to dig up some code I had to work around the issue.

Hawz
Yes its IE. I havent even tested this in other browsers. Well I cant say why its only IE but it will be great if you can give some suggestions
So can you test this in other browsers, and let us know if the same problem occurs?
Hawz
Well I cant, this app is running in our own proprietary env which runs IE. There are no other browsers. Thanks.
A: 

I got it working. I got it by blurring the field and setting the focus back after a timeout. I cannot write here why is it working because it involves our own javascript framework. Thanks for your time.