Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (16 sloc) 0.461 kb
Lets you handle keyboard events without worrying about key codes.
Uses as a starting point.
In progress.
function keydownEventHandler(e) {
var key = keyDecode(e);
if (key === 'f') {
// Lowercase...
else if (key === 'F') {
// ...and uppercase. Normally you'd have to check the shift key.
else if (key === ';') {
// The keycode can vary depending on your browser, but don't sweat it.
Jump to Line
Something went wrong with that request. Please try again.