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

506
Vistas
What happens if I used Javascript deprecated features?

I am writing a program that intercepts user’s keystrokes to decide whether to display or reject the characters. The keypress event is more convenient for this analysis than keyup and keydown because I analyze only letters and digits, all other characters and their combinations are allowed to go through. Meanwhile, https://www.freecodecamp.org/news/javascript-keycode-list-keypress-event-key-codes/ recommends keydown and keyup against keypress. It says “Moreover, the keypress event has been deprecated. This is a big enough reason to avoid it.” How important is it to avoid deprecated features? What happens if I use them? Thank you for your help.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The keypress event has been marked as deprecated by MDN and W3C This means that browser may not support this functionality in future releases, and possible bugs are most likely not patched anymore.

You can still use keypress event in your code, but some day your code stops working because the browser you are using no longer supports it. When this day will be is impossible to say. Could be next month, next year or longer.

about 4 years ago · Juan Pablo Isaza Denunciar
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