Skip to content

Commit fbad295

Browse files
committed
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)
1 parent 8b88de8 commit fbad295

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)