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

127
Views
How to add multiple key press event listener in JS?

I'm creating a simple code editor for brainf language as a website as a practice for my coding skills. In that I kept a button for a function which automatically arrange l the code in lines. (Seperate the code part and the ignoring part in lines).

I want to keep a shortcut for the button as ctrl+I. But till now whatever key listening I did was for a single key. But here I have to listen for 2 keys at a time. In totally confused on how to do that. Please help me with a piece of code if possible to achieve this task USING PURE JAVASCRIPT.

Thanks in advance

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!