Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

510
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!