Y
Hacker News
new
|
ask
|
show
|
jobs
by
tomxor
857 days ago
The repeat delay is actually controlled by your OS here because it's just a simple onkeydown event. Implementing movement rate would require far more code because you need up and down listeners and a state.