ivaynberg/select2 — pull request #1344 by kris-lab (2013-05-24 12:39:02+00:00)
Title: Mobile devices focus problem

This update resolves problem with the virtual keyboard if user clicks on select2 plugin but not directly into input filed. That's mean if user clicks on container which include input field (but not inside input field) then on mobile devices the virtual keyboard will not come up. It happens currently because the container trigger only onMousedown event.

This update solves problem of hidden virtual keyboard if focus() is set on input field by the software (not by the user). In most of devices the focus() on input field should be set only by the onMouseup and onClick event to avoid this problem. For other events the virtual keyboard will not appear. This problem is also described here http://typeof.it/30/how-to-show-the-virtual-keyboard-using-javascript-in-ios/ with example here http://jsfiddle.net/DLV2F/87/