use home and end key
authorJason Finneyfrock <jfinneyfrock@gmail.com>
Mon, 14 May 2012 18:50:37 +0000 (14:50 -0400)
committerJason Finneyfrock <jfinneyfrock@gmail.com>
Mon, 14 May 2012 18:50:37 +0000 (14:50 -0400)
js/reveal.js

index d35170d6d0487418670c7d062de4df46a920c126..23975c38dc3dcc1dc045e895875a340dc8420a79 100644 (file)
@@ -199,6 +199,10 @@ var Reveal = (function(){
                        case 75: case 38: navigateUp(); triggered = true; break;
                        // j, down
                        case 74: case 40: navigateDown(); triggered = true; break;
+                       // home
+                       case 36: navigateTo(0); triggered = true; break;
+                       // end
+                       case 35: navigateTo( document.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ).length ); triggered = true; break;
                }
 
                if( triggered ) {