Enter-Key instead of Tab-Key For Next Focus

Answered
0
0

Hello,  Is there a way that pressing Enter-Key will be focus to the next Control instead of Tab-Key… Its much more productive and fast for encoding of more fields…

I’ve already tried the Javascript but i’m not good in this script… I know that nothing is impossible in WiseJ, but can u give an idea or script that can fix my problem…

Here the script that i’ve tried:

this.addListener(“keypress”, function (event) {
if (event.getKeyIdentifier() == “Enter”) {
var form = event.target.form;
var index = Array.prototype.indexOf.call(form, event.target);
form.elements[index + 1].focus();
event.preventDefault();
}
});

 

Thanks

  • Wim Wetzels
    How can I embed this in VB2015?
  • You must to post comments
Best Answer
0
0

Hi Junarism

Thanks for your question
For this case is necessary a workaround to the normal of Wisej to manage the standar moving within controls.

This is because core design in the Qooxdoo javascript framework that Wisej use for manage the browser controls are very difficult to modify.

In the atached sample, you can see an additional javascript file that provide the desired functionality.

You can avance with Enter and reverse with Shift-Enter

Hope to be help
Regards

 

  • Wim Wetzels
    Looks great, just what I need but How can I embed this in VB2015?
  • You must to post comments
0
0

Wow this is what i’m looking for… Its a big help to my needs….  WiseJ is the best…

Thank you very much sir….

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.