Answers for "javascript handle escape key"

5

javascript detect escape key

document.addEventListener('keydown', function(event){
	if(event.key === "Escape"){
		//do something
	}
});
Posted by: Guest on November-12-2019

Code answers related to "javascript handle escape key"

Code answers related to "Javascript"

Browse Popular Code Answers by Language