jfly/twisty.js — comment on commit d030368c2b8f47cdaa9bf2d459774d721994171f
File:  line 0
By jfly:

I would argue that something like this is the most extensible solution.

Sometimes people are going to want to make cubes that can't be turned by the keyboard (alg animation). Rather than twisty.js adding another option for this, they simply won't ever call twisty.keydownCallback. I also think that it would be best to get rid of keydownCallback, and just have the ability to add a move. People using twisty.js can figure out the mapping of key to move themselves (I imagine twistys will provide a key2turn default mapping). I think this is a good design choice, because people using twisty.js may want to customize their keyboard shortcuts.