Commit b202714b authored by Alexey Shirokov's avatar Alexey Shirokov Committed by GitHub

Fix keyboard navigation in modal image viewer

parent 1a23dc32
......@@ -151,6 +151,7 @@ function showGalleryImage() {
e.addEventListener('mousedown', function (evt) {
if(!opts.js_modal_lightbox || evt.button != 0) return;
modalZoomSet(gradioApp().getElementById('modalImage'), opts.js_modal_lightbox_initially_zoomed)
evt.preventDefault()
showModal(evt)
}, true);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment