Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
typeahead: Fix typeahead for custom selection triggers.
N-Shar-maec2531065476
diff --git a/static/third/bootstrap-typeahead/typeahead.js b/static/third/bootstrap-typeahead/typeahead.jsindex 285430ba3b2..dbb3a15a1f4 100644--- a/static/third/bootstrap-typeahead/typeahead.js+++ b/static/third/bootstrap-typeahead/typeahead.js@@ -376,6 +376,11 @@}, keydown: function (e) {+ if (this.trigger_selection(e)) {+ if (!this.shown) return;+ e.preventDefault();+ this.select(e);+ }this.suppressKeyPressRepeat = !~$.inArray(e.keyCode, [40,38,9,13,27])this.move(e)}@@ -406,10 +411,6 @@breakdefault:- if (this.trigger_selection(e)) {- if (!this.shown) return;- this.select(e);- }var hideOnEmpty = falseif (e.keyCode === 8 && this.options.helpOnEmptyStrings) { // backspacehideOnEmpty = true