Hacker News new | past | comments | ask | show | jobs | submit login

Looks good and very useful. Any chance you can stop the keyboard popping up on the iPad when you touch the menu?



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.


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).


Yes, I'm on a Mac. Good point with the simulator. Never looked into it though.


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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: