Merge pull request #664 from overra/escape-imageviewer
Close ImageViewer on escape
This commit is contained in:
commit
4380b6598c
|
@ -53,6 +53,9 @@ function modalKeyHandler(event){
|
||||||
case "ArrowRight":
|
case "ArrowRight":
|
||||||
modalNextImage(event)
|
modalNextImage(event)
|
||||||
break;
|
break;
|
||||||
|
case "Escape":
|
||||||
|
closeModal();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user