From 4a0b17bb16e86da2b3c2a045ad5d51b076ca7177 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Wed, 9 Oct 2013 11:07:42 -0400 Subject: [PATCH] Pressing enter in username field of login form will submit the form --- app/assets/javascripts/discourse/views/modal/login_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/views/modal/login_view.js b/app/assets/javascripts/discourse/views/modal/login_view.js index 1558273159d..eddba035d6d 100644 --- a/app/assets/javascripts/discourse/views/modal/login_view.js +++ b/app/assets/javascripts/discourse/views/modal/login_view.js @@ -54,7 +54,7 @@ Discourse.LoginView = Discourse.ModalBodyView.extend({ Em.run.schedule('afterRender', function() { - $('#login-account-password').keydown(function(e) { + $('#login-account-password, #login-account-name').keydown(function(e) { if (e.keyCode === 13) { loginController.login(); }