Skip to content

Instantly share code, notes, and snippets.

@betamike
Created December 15, 2011 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save betamike/1482326 to your computer and use it in GitHub Desktop.
Save betamike/1482326 to your computer and use it in GitHub Desktop.
tagName = e.target.nodeName.toLowerCase();
if (that.focusedInput) {
that.focusedInput.blur();
that.focusedInput = false;
}
if (tagName === "select" || tagName === "input" || tagName === "textarea") {
//e.target.focus();
e.target.dispatchEvent("touchstart");
that.focusedInput = e.target;
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment