diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2018-09-11 10:29:54 -0500 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2018-09-12 15:26:16 +0000 |
commit | f8f19f95fd5dc55373e9f50a3f11f37b121a4de4 (patch) | |
tree | e27a36b906709f0dd001db1c7770bedc0fd8709b /app | |
parent | 3bcc1fa1a829a277738eaeca14595931a504de77 (diff) | |
download | phosphor-webui-f8f19f95fd5dc55373e9f50a3f11f37b121a4de4.tar.gz phosphor-webui-f8f19f95fd5dc55373e9f50a3f11f37b121a4de4.zip |
Add comment for keyCode 13
keyCode 13 is the 'Enter' button.
Change-Id: I49d6fc00b8e009835b93ed1f62f7f22be083216e
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/login/controllers/login-controller.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/login/controllers/login-controller.js b/app/login/controllers/login-controller.js index 45e5a3b..eb8e303 100644 --- a/app/login/controllers/login-controller.js +++ b/app/login/controllers/login-controller.js @@ -16,6 +16,8 @@ window.angular && (function(angular) { $scope.host = $scope.dataService.host.replace(/^https?\:\/\//ig, ''); $scope.tryLogin = function(host, username, password, event) { + // keyCode 13 is the 'Enter' button. If the user hits 'Enter' while in + // one of the 3 fields, attempt to log in. if (event.keyCode === 13) { $scope.login(host, username, password); } |