Skip to content

Commit

Permalink
Merge pull request #6635 from demiurge-ash/patch-1
Browse files Browse the repository at this point in the history
Fix keyboard navigation in modal image viewer
  • Loading branch information
AUTOMATIC1111 authored Jan 11, 2023
2 parents 1a23dc3 + b202714 commit 45a8b75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions javascript/imageviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 45a8b75

Please sign in to comment.