Is it possible to determine whether the Shift key is pressed during a mousedown d3.event? if possible could show me a way to do this, try looking in the API, but could not find something useful
Asked
Active
Viewed 1.2k times
22
-
1I have no experience with d3, but, you could just listen for keyboard events then whenever shift is pressed start a mouse event listener. – A.M.K Sep 20 '12 at 18:36
-
Are you using any other libraries? – A.M.K Sep 20 '12 at 18:38
-
not at the moment I'm only using d3.js – Cristian G Sep 20 '12 at 18:40
-
Please see my below answer. My previous one mistakenly used `function(e)`, you can't do that with d3. – A.M.K Sep 20 '12 at 19:24