MCPcopy Create free account
hub / github.com/idank/explainshell / keydown

Function keydown

explainshell/web/static/js/d3.v3.js:7640–7650  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7638 return touches ? d3.touches(target, touches)[0] : d3.mouse(target);
7639 }
7640 function keydown() {
7641 if (d3.event.keyCode == 32) {
7642 if (!dragging) {
7643 center = null;
7644 origin[0] -= extent[1][0];
7645 origin[1] -= extent[1][1];
7646 dragging = 2;
7647 }
7648 d3_eventCancel();
7649 }
7650 }
7651 function keyup() {
7652 if (d3.event.keyCode == 32 && dragging == 2) {
7653 origin[0] += extent[1][0];

Callers

nothing calls this directly

Calls 1

d3_eventCancelFunction · 0.85

Tested by

no test coverage detected