Javascript iPad Return Key event?

On the javascript page, I will issue a warning if the user presses the enter key with

if(evt.keyCode == 13){
    alert("Return Key Pressed");
}

but the event does not fire when I press the return key on the iPad. How can I catch an event?

+3
source share
2 answers

The iPad keyboard fires an event keypresswith a key code of 13 if you press return. It sounds like you have something else going in step.

Here's a quick jsfiddle to check: http://jsfiddle.net/359wG/

+3
source

According to https://api.jquery.com/keypress/

, . , , , Shift, Esc, , . .

, , . , , .

, IPad " ", .

0

All Articles