on my html page, I have one text box and one submit button.Text box has validation routine on its onBlur event. When I enter invalid text in text button and try to click submit button validation routine works fine and alert message is shown and form is not submitted. Submit button can also be called by Alt + G (I have set up code for hotkeys using javascript), but this time onBlur event is not invoked as focus remains on the text box.

how can I stop form from being submitted when user presses Alt+G with invalid text in text box. The page may contain multiple text boxes with onBlur events.