From 52269fe6503177c90a2d1e24fe2fb21ad0c5bf03 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Mon, 29 Oct 2012 14:27:27 +0100 Subject: [PATCH] SONAR-3904 Enter key adds input rows where it shouldn't --- .../webapp/WEB-INF/app/views/settings/_properties.html.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb index 7ca186d5304..edec9c6a421 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb @@ -76,4 +76,10 @@ template.clone().insertBefore(template).show(); return false; }); + $j('form').live('keypress', function (e) { + if (e.which == 13) { + submit_settings.click(); + return false; + } + }); -- 2.39.5