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.