Last active
December 19, 2015 14:38
-
-
Save v42/5970165 to your computer and use it in GitHub Desktop.
Modal keyboard control suggestion to Mutly. Quick and dirty way, of course! ;)
This file contains hidden or 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
$('body').on('keyup', function(e){ | |
switch(e.keyCode) { | |
case 27: | |
$('.the-job.opened .close').click() | |
break | |
case 37: | |
$('.wrap-carousel .prev').click() | |
break | |
case 39: | |
$('.wrap-carousel .next').click() | |
break | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment