added support for wireless presenter

This commit is contained in:
Anders 2012-03-19 23:20:40 +01:00
parent a77842521e
commit b6030d5c7a

View File

@ -181,9 +181,11 @@ var Reveal = (function(){
// instead of checking contentEditable? // instead of checking contentEditable?
if( event.target.contentEditable === 'inherit' ) { if( event.target.contentEditable === 'inherit' ) {
if( event.keyCode >= 37 && event.keyCode <= 40 ) { if( event.keyCode >= 33 && event.keyCode <= 40 ) {
switch( event.keyCode ) { switch( event.keyCode ) {
case 33: navigateLeft(); break; // left for wireless presenter
case 34: navigateRight(); break; // right for wireless presenter
case 37: navigateLeft(); break; // left case 37: navigateLeft(); break; // left
case 39: navigateRight(); break; // right case 39: navigateRight(); break; // right
case 38: navigateUp(); break; // up case 38: navigateUp(); break; // up