added support for wireless presenter

This commit is contained in:
Anders 2012-03-19 23:20:40 +01:00
parent a77842521e
commit b6030d5c7a
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