Skip to content

cwardzala/UserEventByName

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

User Event By Name

This allows you to access keyboard events by their human name rather than keyCode.

window.onkeydown = function (e) {
	UserEventByName(e,"space,up,down"); // will return true if space, up, or down are pressed, false for everything else.
}

About

Get keyboard events by name (e.g. space, up, down, etc...)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published