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

170
Views
How do you check if CapsLock is initially on, without event listeners?

I have been looking through the answers to this Stack Overflow question, and it is pretty much just a ton of answers showing different ways to check if CapsLock is on, with some event listener.

In those many solutions, I found one that I think is the best of them all, but there is one problem with all of them. They all depend on some sort of input (onkeyup or click listeners are used), I would like to (if possible) do a check the instant the page is loaded to check if CapsLock is currently on, and then use the solution I chose, to check if the CapsLock state changes during input.

Is this possible?
Is there some way that we can just use the event.getModifierState without having an event?

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