added support for wireless presenter
authorAnders <joensson.anders@gmail.com>
Mon, 19 Mar 2012 22:20:40 +0000 (23:20 +0100)
committerAnders <joensson.anders@gmail.com>
Mon, 19 Mar 2012 22:20:40 +0000 (23:20 +0100)
js/reveal.js

index 94fcf37d2c5f64b06989871dee2a9e44abc6c663..736545c647425fc738dcd1134bbe456fb5e714ee 100644 (file)
@@ -181,9 +181,11 @@ var Reveal = (function(){
                // instead of checking contentEditable?
 
                if( event.target.contentEditable === 'inherit' ) {
-                       if( event.keyCode >= 37 && event.keyCode <= 40 ) {
+                       if( event.keyCode >= 33 && event.keyCode <= 40 ) {
                                
                                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 39: navigateRight(); break; // right
                                        case 38: navigateUp(); break; // up