Skip to content

Instantly share code, notes, and snippets.

@eirc
Created March 10, 2013 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eirc/5129431 to your computer and use it in GitHub Desktop.
Save eirc/5129431 to your computer and use it in GitHub Desktop.
XBMC webinterface keyboard shortcuts
$(document).keydown(function(e) {
switch(e.which) {
case 37:
$('#remoteContainer').find('#left').click();
break;
case 38:
$('#remoteContainer').find('#up').click();
break;
case 39:
$('#remoteContainer').find('#right').click();
break;
case 40:
$('#remoteContainer').find('#down').click();
break;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment