• Anonymous
  • Login
  • Register
Xpages Dojo Login Custom Control - Feature Request: pressing enter logs in without using button


It would be great if you could log in by pressing enter rathetr than the button.

I had a quick go at coding this but I don't think it is straight forward. I was under the impression that the first button should fire if enter is pressed but I have missed a trick somewhere.




Taken Actions by Owners

This script will take care of the on enter issue:

 

dojo.addOnLoad(function() {

var dlg = dijit.byId('dojoLoginDialog');

 

dojo.connect(dlg, 'onkeypress',

function(event) {

if (event.keyCode==dojo.keys.ENTER) {

login();

}

});

});



Documents
In this field you can enter the actual request.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.
In this field owners can describe what they have done or want to do.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.