Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a constraint before using keyboard navigation

Abort keyboard navigation if the active element on the page is an input or a textarea. (Added Line 218)
  • Loading branch information...
commit fbad295d5bb5263f10522bc1c738c4656cb2a227 1 parent 8b88de8
@angekouf angekouf authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  slideshow/js/supersized.3.2.7.js
View
1  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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.