Skip to content

Commit 2ce3772

Browse files
committed
Lightbox: Disable close-on-back and add close on esc down photoprism#5258 photoprism#5260
Signed-off-by: Michael Mayer <[email protected]>
1 parent 25c1375 commit 2ce3772

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

frontend/src/component/lightbox.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
ref="dialog"
44
:model-value="visible"
55
:scrollable="false"
6+
:transition="false"
7+
:close-on-back="false"
8+
:close-delay="0"
9+
:open-delay="0"
610
fullscreen
711
scrim
812
persistent
@@ -15,6 +19,7 @@
1519
@keydown.space.exact="onKeyDown"
1620
@keydown.left.exact="onKeyDown"
1721
@keydown.right.exact="onKeyDown"
22+
@keydown.esc.stop="close()"
1823
@click.capture="captureDialogClick"
1924
@pointerdown.capture="captureDialogPointerDown"
2025
@mousedown.stop.prevent

0 commit comments

Comments
 (0)