Is there an equivalent to the desktop KeyDown event in web?

In the desktop version of an app I’m developing, I have some code in the keydown event on the username field which advances the user to the password field when enter is pressed:


If key = Chr(13) Or key = Chr(3) Then
//MessageBox (“Enter pressed in username”)
WindowLogin.txtPassword.SetFocus
End If

How can I do the same sort of thing in the web version? There doesn’t seem to be a keydown event available.

Thanks
Steve

A WebButton with the Default flag will act as a “Submit” button to form fields now. Sending key events to the server was extremely traffic heavy, so key events were removed.

2 Likes

Thanks Tim. That does exactly what I wanted

1 Like