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.

compose: Disallow hotkeys when dropdowns (like stream pickers) are open.

Nehal Sharmad08d28743151
diff --git a/web/src/hotkey.js b/web/src/hotkey.js
index 9a5874d385e..8aa3c920204 100644
--- a/web/src/hotkey.js
+++ b/web/src/hotkey.js
@@ -239,7 +239,8 @@ export function processing_text() {
$focused_elt.is("select") ||
$focused_elt.is("textarea") ||
$focused_elt.parents(".pill-container").length >= 1 ||
- $focused_elt.attr("id") === "compose-send-button"
+ $focused_elt.attr("id") === "compose-send-button" ||
+ $focused_elt.parents(".dropdown-list-container").length >= 1
);
}