We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a51ce4 commit 5180e0eCopy full SHA for 5180e0e
jquery.steps.js
@@ -219,6 +219,7 @@
219
enableAllSteps: false, /* If true, all steps are ebable from the begining (all steps are clickable) */
220
enableKeyNavigation: true,
221
enablePagination: true,
222
+ blockPaginationForFields: true,
223
enableContentCache: true,
224
enableFinishButton: true,
225
preloadContent: false, /* Not yet implemented */
@@ -423,8 +424,13 @@
423
424
$this.keyup(function (event)
425
{
426
var wizard = $(this);
- var keyCodes = { left: 37, right: 39 };
427
+ if (wizard.data("options").blockPaginationForFields && $(":focus", wizard).is(":input"))
428
+ {
429
+ event.preventDefault();
430
+ return false;
431
+ }
432
433
+ var keyCodes = { left: 37, right: 39 };
434
if (event.keyCode === keyCodes.left)
435
436
event.preventDefault();
0 commit comments