invite: Allow submitting invite form with Ctrl+Enter in invite.js.

Part of #16077.
This commit is contained in:
Abhijeet Prasad Bodas 2020-08-09 15:39:30 +05:30 committed by Tim Abbott
parent 9fc10479fe
commit b570cf1433
1 changed files with 7 additions and 0 deletions

View File

@ -164,6 +164,13 @@ exports.launch = function () {
});
autosize($("#invitee_emails").trigger("focus"));
// Ctrl + Enter key to submit form
$("#invite-user").on("keydown", (e) => {
if (e.key === "Enter" && e.ctrlKey) {
submit_invitation_form();
}
});
};
exports.initialize = function () {