Restrict saving form with space or enter button

0
Hi Reader,I am able to save form with space press from keyboard or pressing enter from keyboard or mouse click on save button. But I want to restrict enter and space press that is form only be saved by mouse click on save button.How can I do that.Thanks and Regards,Harshraj Singh
asked
1 answers
0

I think that you can hit the enter or spacebar when the focus is on the save button.

What might help is to set the tab index to -1 for the save button, then the focus is not set when tabbing through the fields and the spacebar and enter keys will not execute the actual save action.

answered