Unverified Commit 4380b659 authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #664 from overra/escape-imageviewer

Close ImageViewer on escape
parents c3be3d36 7e42a0f3
...@@ -53,6 +53,9 @@ function modalKeyHandler(event){ ...@@ -53,6 +53,9 @@ function modalKeyHandler(event){
case "ArrowRight": case "ArrowRight":
modalNextImage(event) modalNextImage(event)
break; break;
case "Escape":
closeModal();
break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment