Better HN
top
new
best
ask
show
jobs
Log in
Sign up
iPG | Better HN
iPG
(ipaulgraham.herokuapp.com)
51 points · by
kcovia
· 12y ago · 6 comments
Comments
[–]
darkstar999
12y ago
The decimal key (code 110) is supposed to load a Nyan cat video, but it doesn't work for me.
[–]
Flenser
12y ago
It's due to different keycodes for the onKeyDown/onKeyUp and onKeyPress events, test here:
http://www.asquare.net/javascript/tests/KeyCode.html
[–]
wmil
12y ago
Do you have a full numpad? I can't type it on my laptop so I can't verify.
But pasting the js snippet into the console works.
[–]
darkstar999
12y ago
Yes, and I tried with num lock on/off. No luck.
[–]
chasb
12y ago
+1 - we used this when prepping for our YC interview (Aptible, S14)
[–]
kcovia
OP
12y ago
Courtesy of James Cunningham and Colin Hayhurst (YC12).