close on escape

This commit is contained in:
Adam Snodgrass 2022-09-18 11:42:55 -05:00
parent c76a616bc9
commit 7e42a0f35a

View File

@ -53,6 +53,9 @@ function modalKeyHandler(event){
case "ArrowRight":
modalNextImage(event)
break;
case "Escape":
closeModal();
break;
}
}