Re:JQAPI - Alternative jQuery Documentation
by VonLipwig on Thursday February 23, 2012 @05:37AM
(#3624472)
Looks good and very useful. Any chance you can stop the keyboard popping up on the iPad when you touch the menu?
[ Parent
| on HN ]
Re:JQAPI - Alternative jQuery Documentation
by mustardamus on Thursday February 23, 2012 @09:25AM
(#3624999)
I'd love to make it iPad compatible with the new version I am (slowly) working on. But there is a good chance I never will own a iPad ;) Have to see if I can co-work with somebody on that.
Re:JQAPI - Alternative jQuery Documentation
by jonknee on Thursday February 23, 2012 @10:26AM
(#3625227)
Do you have a Mac? You can run the iOS simulator and figure out when it's popping up and roughly what it looks like. In this case the problem is you're setting focus on the search field.
In iOS the keyboard automatically pops up when there is an input field focused. That's also why you need to have a touch event to set focus because it gets annoying having half the screen disappear (so for example when visiting Google the keyboard does not pop up and the search box does not have focus).
Re:JQAPI - Alternative jQuery Documentation
by mustardamus on Thursday February 23, 2012 @10:38AM
(#3625275)
Yes, I'm on a Mac. Good point with the simulator. Never looked into it though.
Re:JQAPI - Alternative jQuery Documentation
by jonknee on Thursday February 23, 2012 @10:46AM
(#3625322)
It's an easy change, you just need to move the searchFocus() call to outside of the touch event. This should do the trick:
setTimeout(searchFocus, 0);
Update: I gave you a pull request on GitHub.