Skip to content

Commit

Permalink
Merge pull request #499 from anjalyes/keyfix
Browse files Browse the repository at this point in the history
  • Loading branch information
bartaz committed Feb 3, 2016
2 parents d277f54 + d8995aa commit 2521375
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/impress.js
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,11 @@
// as another way to moving to next step... And yes, I know that for the sake of
// consistency I should add [shift+tab] as opposite action...
document.addEventListener("keyup", function ( event ) {

if ( event.shiftKey || event.altKey || event.ctrlKey || event.metaKey ){
return;
}

if ( event.keyCode === 9 || ( event.keyCode >= 32 && event.keyCode <= 34 ) || (event.keyCode >= 37 && event.keyCode <= 40) ) {
switch( event.keyCode ) {
case 33: // pg up
Expand Down

0 comments on commit 2521375

Please sign in to comment.