I am working on a solution that implements adding text to text fields, but I will turn off regular key events and use a custom one. I will disable the key event as follows:
<input onkeypress="return false;" onkeydown="return false;" onkeyup="return false;" type="text">
Now it works fine in browsers (Safari, Firefox, IE), but it cannot be done on the Safari iPad, and when the user presses a key, it is entered twice. Is there any other way to disable key events in input field for ipad?
javascript iphone ipad textbox textfield
Devin dixon
source share