summaryrefslogtreecommitdiffstats
path: root/settings/js/authtoken_view.js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js/authtoken_view.js')
-rw-r--r--settings/js/authtoken_view.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/settings/js/authtoken_view.js b/settings/js/authtoken_view.js
index 365057b5fc6..9931be2ae1f 100644
--- a/settings/js/authtoken_view.js
+++ b/settings/js/authtoken_view.js
@@ -230,6 +230,12 @@
this._tokenName = $('#app-password-name');
this._addAppPasswordBtn = $('#add-app-password');
this._addAppPasswordBtn.click(_.bind(this._addAppPassword, this));
+ this._appPasswordName = $('#app-password-name');
+ this._appPasswordName.on('keypress', function(event) {
+ if (event.which === 13) {
+ _this._addAppPassword();
+ }
+ });
this._result = $('#app-password-result');
this._newAppLoginName = $('#new-app-login-name');