Hacker News new | ask | show | jobs
by kreldjarn 4205 days ago
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.
1 comments

Why not just use constants?