-
Notifications
You must be signed in to change notification settings - Fork 726
Closed
Description
Hi,
I would like to tab between text input boxes after validation, similar to entering a serial number into Windows activation, I have managed to do this but only with overriding the accept key e.g.
$.keyboard.keyaction.accept = function(base){
var type = base.el.attributes[0].nodeValue;
if (type == "text") {
base.accept(); // accept the content
} else if (type == "ticketReference") {
base.switchInput(!base.shiftActive, true);
}
};I have several text input boxes and would like to tab between each one when the validate method return true, not relying on the user pressing a key, I have tried the following but can't get it to work
This is I have so far,
validate: function(keyboard, value, isClosing){
var valid = /^\S{3}$/g.test(value);
if (valid) {
keyboard.accept();
}
return valid;
},Thanks