I have one JSP Page with
One Edit Box
Two Submit buttons "Button #1", "Button#2"
If i hit the "Enter" key in keyboard, "Button #1" should fire.
If i keep a cursor pointer in text box, and hit the "Enter" key then "Button #2" should fire.
Can anyone help me different approaches to achieve this solution?