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.

composebox_typeahead: Trigger foucs to send button only after keyup event.

akshatdalton3531463ac9c8
diff --git a/static/js/composebox_typeahead.js b/static/js/composebox_typeahead.js
index 33c87c1840d..4deb6c3bc5c 100644
--- a/static/js/composebox_typeahead.js
+++ b/static/js/composebox_typeahead.js
@@ -216,8 +216,7 @@ function handle_keydown(e) {
// which does not make <button>s tab-accessible by default
// (even if we were to set tabindex=0).
if (!should_enter_send(e)) {
- $("#compose-send-button").trigger("focus");
- e.preventDefault();
+ nextFocus = $("#compose-send-button");
}
} else {
// Enter