--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+ <head>
+ <meta name="viewport" content="width=320; user-scalable=no" />
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
+ <title>Safari Mobile input test page</title>
+ <script>
+ function handleKeyPress(e)
+ {
+ var key;
+ if(window.event)
+ key = window.event.keyCode;
+ else
+ key = e.which;
+
+ if(key == 13 || key == 10)
+ {
+ document.forms[0].submit()
+ document.getElementById('testLink').focus();
+ return false;
+ }
+ else
+ return true;
+ }
+ </script>
+</head>
+<body>
+ <form action="javascript:alert('search')">
+ <input type="text"
+ onKeyPress="return handleKeyPress(event)"
+ maxlength="100"
+ value="" />
+ <a href="#" id="testLink"></a>
+ </form>
+ </body>
+</html>
\ No newline at end of file