Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Abhijeet Prasad Bodasb570cf143324
diff --git a/static/js/invite.js b/static/js/invite.js
index 3fea54fcfb0..431397dc64a 100644
--- a/static/js/invite.js
+++ b/static/js/invite.js
@@ -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 () {