Tengo texto de tipo de entrada en mi html dentro de la etiqueta del formulario. El evento de tecla abajo de JavaScript no se ejecuta cuando presiono la tecla Intro de los dispositivos móviles. En el teclado de la computadora funciona bien. Cuando pongo esta entrada no dentro de la etiqueta del formulario, funciona bien en dispositivos móviles. Probé eventos de pulsación de tecla, tecla abajo, tecla arriba.
$("body").on("keydown", "input, select, textarea, button", function(e) { var self = $(this), form = self.parents("form:eq(0)"), focusable, next, id; id = $(this).closest("tr").parent().parent().attr("id"); if ( e.keyCode == 13 || e.keyCode == 9 || e.key == "Next" || e.key == "Go" ) { focusable = form .find('input[type!="checkbox"],a,select,button,textarea') .filter(":visible:not([readonly]):enabled"); if ( (this.type == "text" || this.type == "tel" || this.type == "email" || this.type == "time" || this.type == "select-one" || this.type == "number" || this.type == "date") && $(this).attr("tabindex") < 700 ) { previous_elem = $(this); valid_func_agets(this, e); return false; } } })Nota: estas entradas están bajo un div y estoy reescribiendo html completo cuando se ejecutan algunos eventos.