Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

IE9 focus not switching when opening keyboard #160

Closed
semmelbroesel opened this issue Apr 12, 2013 · 6 comments
Closed

IE9 focus not switching when opening keyboard #160

semmelbroesel opened this issue Apr 12, 2013 · 6 comments
Labels

Comments

@semmelbroesel
Copy link

Hi.

I feel for you with all the crazy IE stuff - I'm trying to get one of my own projects IE compatible and was having trouble with a jquery placeholder script to work with your keyboard code, but then I realized that you have a watermark feature built-in, so I went back to your site using IE9 and found this bug:
Using the very first example, if I click into the text field, the keyboard opens, but the blinking cursor stays focused on the text field behind, not the keyboard text field. I hope this screen explains what I'm trying to say.

image

I'm using IE9 32bit on Windows 7 64bit in case it helps.

Thanks!

@Mottie
Copy link
Owner

Mottie commented Apr 13, 2013

Hi @semmelbroesel!

Yeah, I know about that bug... I'm not sure how to work around it. It seems all IE versions do it. I've set a delay then focus on that input and it still doesn't work.

The only two ways I've found around that problem are to either set the usePreview option to false or start typing on the virtual keyboard.

If you know of why IE doesn't like giving focus to that input, then I would love to hear it.

@semmelbroesel
Copy link
Author

Hm, that gave me an idea...
Maybe you could use the typing simulation for this - maybe set it to automatically type a space and a backspace ... Would that maybe work as a workaround?
(I'm not at work again until Monday, and that's where I have all my code, so I can't check until then).

@Mottie
Copy link
Owner

Mottie commented Apr 13, 2013

Hey you're right! But, actually you don't need to type anything in:

$('#keyboard').keyboard({
    visible : function(e, keyboard, el) {
        keyboard.typeIn('', 10);
    }
}).addTyping();

Well, at least with that working, I have something to work with to figure out a better internal method... shakes fist at IE

Thanks!

@semmelbroesel
Copy link
Author

Hey, I didn't actually expect this to work (I'm a web developer, too, so I know just a bit about IE as well and don't expect it to ever play nicely), but as a workaround, it might just do :-)
Glad I had a useful idea :-)

@Mottie
Copy link
Owner

Mottie commented Apr 13, 2013

Yay, some more weirdness... that seems to work in a live demo, but not locally 😡

@Mottie
Copy link
Owner

Mottie commented May 6, 2013

This issue should now be resolved. If you continue to have problems, please leave a comment. Thanks!

@Mottie Mottie closed this as completed May 6, 2013
@Mottie Mottie mentioned this issue May 6, 2013
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants