mirror of
https://github.com/richardharrington/robotwar.git
synced 2024-06-04 07:29:33 +00:00
changed keypress to keydown, to allow for repeating when key is held down
This commit is contained in:
parent
c4397525e5
commit
2074f589a5
|
@ -142,7 +142,7 @@
|
|||
});
|
||||
|
||||
// Keyboard event listeners for fast-forward control
|
||||
$('body').bind('keyup', function(event) {
|
||||
$('body').bind('keydown', function(event) {
|
||||
if (event.which === 37) {
|
||||
fastForward = Math.max(fastForward - 1, 1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user