Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Get key label for given key code of keyboard
function keyLabel(keyCode) {
switch (keyCode) {
case 33:
name = "{PGUP}";
break;
case 45:
name = "{INS}";
break;
case 121:
name = "{F10}"
}
return name;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment