9 ms·
Looks good and very useful. Any chance you can stop the keyboard popping up on the iPad when you touch the menu?
by VonLipwig 15y ago
Looks good and very useful. Any chance you can stop the keyboard popping up on the iPad when you touch the menu?
- mustardamus 15y agoI'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.
- jonknee 15y agoDo 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).
- mustardamus 15y agoYes, I'm on a Mac. Good point with the simulator. Never looked into it though.
- jonknee 15y agoIt'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.