Skip to content

Commit 2ccedfd

Browse files
committed
Merge pull request buildinternet#120 from angekouf/master
Abort keyboard navigation if the active element on the page is an input or a textarea
2 parents 8b88de8 + fbad295 commit 2ccedfd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

slideshow/js/supersized.3.2.7.js

+1
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@
215215
$(document.documentElement).keyup(function (event) {
216216

217217
if(vars.in_animation) return false; // Abort if currently animating
218+
if($(document.activeElement).is("input, textarea")) return false; // Abort if active element is an input or a textarea.
218219

219220
// Left Arrow or Down Arrow
220221
if ((event.keyCode == 37) || (event.keyCode == 40)) {

0 commit comments

Comments
 (0)