Created
March 14, 2012 16:24
-
-
Save narrowdesign/2037621 to your computer and use it in GitHub Desktop.
Arrow key navigation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ADD THIS FOR ARROW KEY NAVIGATION on the home ticks and the photos on sub pages for maximum power! | |
$(document).bind("keydown", function (e) { | |
switch (e.keyCode) { | |
case 37: // LEFT ARROW | |
// trigger prev tick | |
break; | |
case 39: // RIGHT ARROW | |
// trigger next tick | |
break; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment