add source page url, open with e key
This commit is contained in:
@@ -246,6 +246,7 @@ document.addEventListener("keydown", e => {
|
||||
if (e.key === "ArrowRight") next_image();
|
||||
else if (e.key === "ArrowLeft") prev_image();
|
||||
else if (e.key === "Escape") close_gallery();
|
||||
else if (e.key === "e" && images[current_idx]?.source) window.open(images[current_idx].source, "_blank");
|
||||
});
|
||||
|
||||
// ── event listeners ────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user