From 7721a4478a979ccbbe13509b8fc2658b0d4ea1a4 Mon Sep 17 00:00:00 2001 From: Piotr Gawron Date: Fri, 26 Jun 2020 13:32:10 +0200 Subject: [PATCH] login on enter --- CHANGELOG | 2 ++ frontend-js/src/main/js/gui/LoginDialog.js | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 1f3548dd7..f7468d579 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -19,6 +19,8 @@ minerva (15.1.0) unstable; urgency=medium CONVERSION (#1300) * Small improvement: when uploading complex map with images warnings are raised if images are not referenced in coords.txt file (#1308) + * Small improvement: hitting enter after filling credentials automatically + tries to log in (#1312) * Bug fix: export to image from selected polygon contained all elements inside rectangle bounded by the polygon coordinates (#1096) * Bug fix: continuous refreshing list of project when uploading/removing diff --git a/frontend-js/src/main/js/gui/LoginDialog.js b/frontend-js/src/main/js/gui/LoginDialog.js index 30c14c036..54faf6c76 100644 --- a/frontend-js/src/main/js/gui/LoginDialog.js +++ b/frontend-js/src/main/js/gui/LoginDialog.js @@ -134,6 +134,16 @@ LoginDialog.prototype._createLoginTab = function () { href: "#" })); + $(loginInput).on('keypress', function (e) { + if (e.which === 13) { + $(passwordInput).focus(); + } + }); + $(passwordInput).on('keypress', function (e) { + if (e.which === 13) { + $(loginButton).click(); + } + }); }; /** -- GitLab