-
Notifications
You must be signed in to change notification settings - Fork 724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Click on Accept button and going to next input #528
Comments
Hi, check out this: https://jsfiddle.net/Mottie/k22Lybw3/ By pressing on prev and next you move the focus to the previous and next input field. With some modifying, you can add the 'next' function to 'accept'. |
Thanks @exyoris! I'm on vacation with only my phone, so it is difficult for
me to answer appropriately with code.
|
Of Topic :) I have used lots of projects in github, but rarely found the support which Mottie gives to us compare to other projects. |
Thank you very much @exyoris |
I have changed |
I'll take a closer look at this when I get back next week |
Issue #524 has an example of multiple inputs allowing you to switch to the previous and next inputs using internal keys. The last input changes the "next" button to "submit". In this demo, a modified version of the above demo, the "accept" key action is modified to automatically switch to the next input $(function() {
$.keyboard.keyaction.accept = function(kb) {
kb.switchInput(true, kb.options.autoAccept);
return false; // prevents further processing
};
$('#wrap input').keyboard({
usePreview: false,
autoAccept: true
});
}); |
In the latest release, you no longer required to include |
Wow. It works like a charm. Thanks Mottie! |
I'm guessing this issue has been resolved, so I'm going to close it. If you continue to have problems, please feel free to continue the discussion in this thread. |
Hello,
I am using the keyboard in a touch screen. I would like to click on the "Accept" button and move the focus to the next field. Would that be possible? I only see the setting when pressing the "Enter" key.
Thanks.
The text was updated successfully, but these errors were encountered: