mirror of https://github.com/zulip/zulip.git
invite: Allow submitting invite form with Ctrl+Enter in invite.js.
Part of #16077.
This commit is contained in:
parent
9fc10479fe
commit
b570cf1433
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue