Skip to content

Commit

Permalink
Merge pull request #265 from ags131/patch-1
Browse files Browse the repository at this point in the history
Fixed switchInput ignoring validation
  • Loading branch information
Mottie committed Apr 2, 2014
2 parents 5b23150 + cd26b60 commit cd979c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/jquery.keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,8 @@ $.keyboard = function(el, options){
indx = all.length - 1; // stop or go to last
}
if (!stopped) {
base.close(isAccepted);
isAccepted = base.close(isAccepted);
if(!isAccepted) return;
kb = all.eq(indx).data('keyboard');
if (kb && kb.options.openOn.length) {
kb.focusOn();
Expand Down Expand Up @@ -1777,4 +1778,4 @@ $.fn.caret = function(options,opt2) {
}};
}
};
})(jQuery, 'length', 'createRange', 'duplicate');
})(jQuery, 'length', 'createRange', 'duplicate');

0 comments on commit cd979c8

Please sign in to comment.