How to bind the sign in button with the enter key?

On the login page of my mendix application I would like to be able to hit the enter key after entering username/password to log in. Now I have to click the sign in button. Does anyone have an idea how to do that?
2 answers

See forum post:

The easiest way is to insert a HTMLSnippet, give the signin button class signin and use a little jQuery :

$(".otp input").keyup(function(event) {
    if (event.keyCode === 13) {



Allow anonymous users, create a custom sign-in page and replace the default sign-in widget with a call nanoflow button that triggers on-enter. Use the sign-in action from the nanoflow commons module to sign the user into your app.