Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

148
Vistas
Is there any way to catch keypress events in mobile browser keyboard?

I built a filter functionality for a list of banks. It works fine in desktop: When the user puts in any name, the keypress event occurs and later it call the filter() function.

However, it does not work on mobile, since no keypress event is triggered.

The goal is whenever user put any letter in input filed, it should call that filter() function on mobile. Is there any way to do this?

(this website is built on wix so it use its velo api)

let debounceTimer;

export function search_keyPress(event) { //enable onKeypress for input form , search is the id of input

$w("#clearSearch").show(); //show the cross mark to clear inputs

$w("#search").value; // value of input field

    if (debounceTimer) {
        clearTimeout(debounceTimer);
        debounceTimer = undefined;
    }

    debounceTimer = setTimeout(() => {
        filter($w("#search").value); //ID of input form
    }, 200);
}

let searchWord;

function filter(search) {
    if (searchWord !== search) {
        $w("#bankTableDataset").setFilter(wixData.filter().contains('bankName', search)); // ID of the dataset
        searchWord = search;
    }
}
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda