Skip to content

Comment on Whatthekeycode.com - quickly find a js keycode for any key

Comments

The key that is being pressed should be shown on the page somewhere - though it would make it look uglier. But for a utility like this, probably won't matter all that much.

http://jsfiddle.net/talmand/pXkNz/

Although it is interesting to tap on random buttons to see what the results are. Some of them produce a key code but no character (SHIFT and RETURN as examples) while others produce a different character than what I tapped.

Just tossed it together rather quickly so there's probably a better way to do it.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.