f key toggles fullscreen
This commit is contained in:
@@ -247,6 +247,7 @@ document.addEventListener("keydown", e => {
|
|||||||
if (e.key === "ArrowRight") next_image();
|
if (e.key === "ArrowRight") next_image();
|
||||||
else if (e.key === "ArrowLeft") prev_image();
|
else if (e.key === "ArrowLeft") prev_image();
|
||||||
else if (e.key === "Escape") close_gallery();
|
else if (e.key === "Escape") close_gallery();
|
||||||
|
else if (e.key === "f") toggle_fullscreen();
|
||||||
else if (e.key === "e" && images[current_idx]?.source) window.open(images[current_idx].source, "_blank");
|
else if (e.key === "e" && images[current_idx]?.source) window.open(images[current_idx].source, "_blank");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user