Permalink
Browse files

space for next item/slide

  • Loading branch information...
cherouvim committed Sep 21, 2011
1 parent b64266e commit 84e97ffe7ffea45a37d82b73f1ed218898323e29
Showing with 3 additions and 2 deletions.
  1. +3 −2 slideshow.js
View
@@ -167,8 +167,8 @@ var self = window.SlideShow = function(container, slide) {
Keyboard navigation
Home : First slide
End : Last slide
- Up/Right arrow : Next item/slide
- Ctrl + Up/Right arrow : Next slide
+ Space/Up/Right arrow : Next item/slide
+ Ctrl + Space/Up/Right arrow : Next slide
Down/Left arrow : Previous item/slide
Ctrl + Down/Left arrow : Previous slide
(Shift instead of Ctrl works too)
@@ -190,6 +190,7 @@ var self = window.SlideShow = function(container, slide) {
case 38: // up arrow
me.previous(evt.ctrlKey || evt.shiftKey);
break;
+ case 32: // space
case 39: // ->
case 40: // down arrow
me.next(evt.ctrlKey || evt.shiftKey);

0 comments on commit 84e97ff

Please sign in to comment.