Pressing enter in username field of login form will submit the form
This commit is contained in:
parent
24598c80af
commit
4a0b17bb16
|
@ -54,7 +54,7 @@ Discourse.LoginView = Discourse.ModalBodyView.extend({
|
||||||
|
|
||||||
|
|
||||||
Em.run.schedule('afterRender', function() {
|
Em.run.schedule('afterRender', function() {
|
||||||
$('#login-account-password').keydown(function(e) {
|
$('#login-account-password, #login-account-name').keydown(function(e) {
|
||||||
if (e.keyCode === 13) {
|
if (e.keyCode === 13) {
|
||||||
loginController.login();
|
loginController.login();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue