Merge pull request #21 from archive/master

Added support for wireless presenter
edit
Hakim El Hattab 2012-03-19 18:54:34 -07:00
commit cd66a6574d
1 changed files with 3 additions and 1 deletions

View 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