Permalink
Browse files

Merge pull request #120 from angekouf/master

Abort keyboard navigation if the active element on the page is an input or a textarea
  • Loading branch information...
2 parents 8b88de8 + fbad295 commit 2ccedfdb011df7f05a7264b843fde442b9912c5b @samdunn samdunn committed Jan 18, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 slideshow/js/supersized.3.2.7.js
@@ -215,6 +215,7 @@
$(document.documentElement).keyup(function (event) {
if(vars.in_animation) return false; // Abort if currently animating
+ if($(document.activeElement).is("input, textarea")) return false; // Abort if active element is an input or a textarea.
// Left Arrow or Down Arrow
if ((event.keyCode == 37) || (event.keyCode == 40)) {

0 comments on commit 2ccedfd

Please sign in to comment.