From 7db7db262c47f92e542bf9578fb66ad631dd2bea Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 18 Dec 2019 16:36:06 +0100 Subject: [PATCH] Fix 'enter' key in team invite modal --- www/common/common-ui-elements.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 42ee58f93..f91621805 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1685,6 +1685,11 @@ define([ dismissButton ]) // XXX ]); + $(linkMessage).keydown(function (e) { + if (e.which === 13) { + e.stopPropagation(); + } + }); var localStore = window.cryptpadStore; localStore.get('hide-alert-teamInvite', function (val) { if (val === '1') { return; } @@ -1763,7 +1768,7 @@ define([ onClick: function () { return process(); }, - keys: [13] + keys: [] }, { className: 'primary cp-teams-invite-copy', name: Messages.team_inviteLinkCopy, // XXX