diff --git a/CHANGELOG.md b/CHANGELOG.md index a6065c4..008d5db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 1.5.3 + +Bug fixes: + +* addresses an issue with forms not submitting from the on-screen keyboard (#22) + + ## 1.5.2 Bug fixes: diff --git a/autotab.jquery.json b/autotab.jquery.json index c0f3a65..ddcb845 100644 --- a/autotab.jquery.json +++ b/autotab.jquery.json @@ -6,7 +6,7 @@ "filter", "autotab" ], - "version": "1.5.2", + "version": "1.5.3", "author": { "name": "Mathachew", "url": "https://github.com/Mathachew" diff --git a/component.json b/component.json index d9f5052..cb427c3 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "name": "jquery.autotab", - "version": "1.5.2", + "version": "1.5.3", "description": "jQuery plugin that provides auto-tabbing and filtering on text fields in a form.", "main": [ "./js/jquery.autotab.min.js" ], "homepage": "https://github.com/Mathachew/jquery-autotab", diff --git a/js/jquery.autotab.js b/js/jquery.autotab.js index 08c30e2..b466b24 100644 --- a/js/jquery.autotab.js +++ b/js/jquery.autotab.js @@ -1,5 +1,5 @@ /** - * Autotab - jQuery plugin 1.5.2 + * Autotab - jQuery plugin 1.5.3 * https://github.com/Mathachew/jquery-autotab * * Copyright (c) 2013 Matthew Miller @@ -349,15 +349,15 @@ } } }).on('keypress', function (e) { - var defaults = getSettings(this); + var defaults = getSettings(this), + keyCode = e.which || e.keyCode; // e.charCode == 0 indicates a special key has been pressed, which only Firefox triggers - if (!defaults || defaults.disabled || (settings.firefox && e.charCode === 0) || e.ctrlKey || e.altKey) { + if (!defaults || defaults.disabled || (settings.firefox && e.charCode === 0) || e.ctrlKey || e.altKey || keyCode == 13) { return true; } - var keyCode = e.which || e.keyCode, - keyChar = String.fromCharCode(keyCode); + var keyChar = String.fromCharCode(keyCode); // Prevents auto tabbing when defaults.trigger is pressed if (defaults.trigger !== null && defaults.trigger.indexOf(keyChar) >= 0) { diff --git a/js/jquery.autotab.min.js b/js/jquery.autotab.min.js index 977f0ac..e5d7775 100644 --- a/js/jquery.autotab.min.js +++ b/js/jquery.autotab.min.js @@ -1,5 +1,5 @@ /** - * Autotab - jQuery plugin 1.5.2 + * Autotab - jQuery plugin 1.5.3 * https://github.com/Mathachew/jquery-autotab * * Copyright (c) 2013 Matthew Miller @@ -15,7 +15,7 @@ f.previous;e.extend(f,m);h(this[a],f)}}else if("remove"==b||"destroy"==b||"disab RegExp(a.pattern,"g")}null!==b&&(c=c.replace(b,""));a.nospace&&(b=RegExp("[ ]+","g"),c=c.replace(b,""));a.uppercase&&(c=c.toUpperCase());a.lowercase&&(c=c.toLowerCase());return c},r=function(b,c){var a=l(b);a.disabled&&(a.disabled=!1,a.target=null,a.previous=null);e.extend(a,c);"string"!==typeof a.target&&a.target instanceof jQuery||(a.target=e(a.target));"string"!==typeof a.previous&&a.previous instanceof jQuery||(a.previous=e(a.previous));var k=b.maxLength;2147483647==a.maxlength&&2147483647!=k? a.maxlength=k:0