1

We are developing application where all inputs are taken from barcode scanner and we never want iOS keyboard to pop-up for input. Is there any native code we can add it as plug-in?

We are using phonegap to compile html5 app to iOS platform.

1 Answer 1

1

Refer Link1 Link2

The 2nd line will de-focus all input fields, and it relies on jQuery. I found that calling blur() on the single focused textfield didn't always work. Either one of these lines should work independently, but both of them together cannot be stopped!

var hideKeyboard = function() {
    document.activeElement.blur();
    $("input").blur();
};

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.