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

149
Views
Detect modifier key press combinations in Paper.js

From the documentation I see that we can detect the press event for modifier keys (http://paperjs.org/tutorials/interaction/keyboard-interaction/). I wanted to detect if regular keys are being pressed in combination with modifier keys.

Here is my code:

if(event.key == 'c') {

// Do Stuff

            if(event.modifiers.shift) {
                console.log("Fires Properly");
            }

            if(event.modifiers.alt) {
                console.log("Never Fires");
            }
        }

The only modifier key I am able to detect being pressed with regular keys is Shift. Is there a way to detect Alt and other modifier keys in combination with regular keys?

Thanks.

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!