Skip to content

Instantly share code, notes, and snippets.

@connor
Created April 29, 2012 23:03
Show Gist options
  • Save connor/2553762 to your computer and use it in GitHub Desktop.
Save connor/2553762 to your computer and use it in GitHub Desktop.
right keydown cubism.js
case 39: // right
if (d3.event.shiftKey && size - focus > 20) context.focus(focus += 20);
else {
if (focus == null) focus = size - 2;
if (focus < size - 1) context.focus(focus++);
}
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment