Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kreldjarn
· 11y ago · 0 comments
Ha! Sorry about that. I wanted to avoid hard-coding keycodes for the sake of legibility so I used 'W'.getCharcodeAt(0) — which unfortunately doesn't work for the arrow keys.
Comments
[–]
Recoil42
11y ago
Why not just use constants?