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.

gifs: Prevent message navigation when navigating with arrows.

apoorvapendse75c01f35ff64
diff --git a/web/src/gif_picker_ui.ts b/web/src/gif_picker_ui.ts
index 75245257473..b98b9c4fda8 100644
--- a/web/src/gif_picker_ui.ts
+++ b/web/src/gif_picker_ui.ts
@@ -61,6 +61,7 @@ function focus_gif_at_index(index: number): void {
}
function handle_keyboard_navigation_on_gif(e: JQuery.KeyDownEvent): void {
+ e.stopPropagation();
assert(e.currentTarget instanceof HTMLElement);
const key = e.key;
const is_alpha_numeric = /^[a-zA-Z0-9]$/i.test(key);