Vinay Verma
Vinay Verma

Reputation: 1194

Capturing Mouse and Keyboard Events Simultaneously

I am in a situation where I have to detect that the control key is pressed or not while dragging an object in JavaScript. If the control key is pressed then I need to perform some other action. Can someone help me out on this?

Upvotes: 1

Views: 1122

Answers (1)

SLaks
SLaks

Reputation: 888177

Check event.ctrlKey.

Upvotes: 1

Related Questions