Files
zulip/web
Sahil Batra d718ec8920 lightbox: Use single keydown handler for toggling overlay.
We use the same "v" key for opening and closing the
lightbox overlay.

We already have code to open and close the lightbox
overlay in hotkey.ts.

Having another keydown handler for closing the overlay
resulted in a bug where the overlay was just not being
opened because the second handler was immediately called
to close the overlay was immediately called after the first.

Fixes #35868.

(cherry picked from commit 6ab670bdee)
2025-08-28 16:17:08 -07:00
..
2025-07-23 11:24:12 -07:00