I have one line of code (no forms here):
<input type="number" min="0" max="9999999" id="inSku" name="inSku">
I used to type="text", but in mobile browsers, which by default displayed a full keyboard, and in the field in question only numerical inputs are accepted. Logically, mobile browsers will change to a single-numbered keyboard when they focus on the field type="number", however currently I rely on a bit jQueryto handle the presentation of the form. Here is the code:
$("#inSku").keyup(function (event) {
if (event.keyCode == 13) {
ringItem();
}
});
The problem is that on the Android Android keyboard (and I accept a large number of other mobile browsers) - when using the "number" keyboard, the enter key, which is on the regular Android alphanumeric keyboard, changed to the "next" button. This button in my case performs text input and inserts it into the address field, but not ideally. Is there a way to use the following button on the keyboard and get it to execute my other javascript function?
source
share