Created
December 13, 2016 09:00
-
-
Save rafaelmaeuer/da8978845faa249218991829fcfec7cc to your computer and use it in GitHub Desktop.
Hide iOS Keyboard
From http://uihacker.blogspot.de/2011/10/javascript-hide-ios-soft-keyboard.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hideKeyboard = function() { | |
document.activeElement.blur(); | |
var inputs = document.querySelectorAll('input'); | |
for(var i=0; i < inputs.length; i++) { | |
inputs[i].blur(); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment