Skip to content

Instantly share code, notes, and snippets.

@v42
Last active December 19, 2015 14:38
Show Gist options
  • Save v42/5970165 to your computer and use it in GitHub Desktop.
Save v42/5970165 to your computer and use it in GitHub Desktop.
Modal keyboard control suggestion to Mutly. Quick and dirty way, of course! ;)
$('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