Created
March 10, 2013 17:02
-
-
Save eirc/5129431 to your computer and use it in GitHub Desktop.
XBMC webinterface keyboard shortcuts
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
$(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