I'd like to bind the "Up" and "Down" keyboard arrow keys to Squeezebox
volume. There is a javascript library called Mousetrap that will enable
this: https://craig.is/killing/mice
The code should look something like this:
Code:
--------------------
<script type="text/javascript" src="/html/ext/mousetrap.js">
//Keyboard actions
Mousetrap.bind ('up', function() { volumeup; });
Mousetrap.bind ('down', function() { volumedown; });
</script>
--------------------
But I don't know enough to get it to work. What functions should I be
calling? Thanks for any suggestions.
------------------------------------------------------------------------
Apesbrain's Profile: http://forums.slimdevices.com/member.php?userid=738
View this thread: http://forums.slimdevices.com/showthread.php?t=107501
_______________________________________________
diy mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/diy