mirror of https://github.com/zulip/zulip.git
lightbox: Make `v` close the lightbox during Pan & Zoom.
When Pan & Zoom (canvas) is enabled, the `v` hotkey does not work due to `LightboxCanvas` overriding the `keydown` event. Add `v` as an option in the new listener. Fix #9777.
This commit is contained in:
parent
c3b1381c2a
commit
3ae5e40f8f
|
@ -158,6 +158,8 @@ var LightboxCanvas = (function () {
|
|||
} else if (e.key === "z" || e.key === '-') {
|
||||
funcs.setZoom(meta, '-');
|
||||
funcs.displayImage(canvas, context, meta);
|
||||
} else if (e.key === 'v') {
|
||||
overlays.close_overlay('lightbox');
|
||||
}
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
|
Loading…
Reference in New Issue