Merge pull request #6635 from demiurge-ash/patch-1

Fix keyboard navigation in modal image viewer
This commit is contained in:
AUTOMATIC1111 2023-01-11 12:00:15 +03:00 committed by GitHub
commit 45a8b758a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}