From b6030d5c7a83436e333719700f64909569c97062 Mon Sep 17 00:00:00 2001 From: Anders Date: Mon, 19 Mar 2012 23:20:40 +0100 Subject: [PATCH] added support for wireless presenter --- js/reveal.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/reveal.js b/js/reveal.js index 94fcf37..736545c 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -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 -- 2.26.2