Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
fix(keyboard): do not apply event if modifier was pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Burgmer committed Mar 3, 2015
1 parent 5ae1eef commit 8e2cdea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/slides/slides.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ angular.module('w11k.slides').directive('w11kSlides', [
$document.bind('keydown', function (event) {
var action;

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

// right or page down
if (event.keyCode === 39 || event.keyCode === 34) {
action = goToNext;
Expand Down

0 comments on commit 8e2cdea

Please sign in to comment.