IPad Disable input key input

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?

0
javascript iphone ipad textbox textfield
source share
2 answers

I get it. Basically, if you are going to configure key input, you should configure it on the keyboard, not the down key or the key pressed in Javascript.

0
source share

Perhaps you can make the text box fully transparent (alpha: 0), put it in a div and add text to the div behind the text box.

0
source share

All Articles