From: Jason Finneyfrock Date: Mon, 14 May 2012 18:50:37 +0000 (-0400) Subject: use home and end key X-Git-Tag: 1.3.0~9^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ba6bec22c45033ae59ea878b928ab1985e0f1f81;p=reveal.js.git use home and end key --- diff --git a/js/reveal.js b/js/reveal.js index d35170d..23975c3 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -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 ) {