diff options
Diffstat (limited to 'youtube/static')
-rw-r--r-- | youtube/static/js/hotkeys.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/static/js/hotkeys.js b/youtube/static/js/hotkeys.js index 45e4333..c696ac0 100644 --- a/youtube/static/js/hotkeys.js +++ b/youtube/static/js/hotkeys.js @@ -27,6 +27,6 @@ function onKeyDown(e) { } } -window.addEventListener('load', function() { +window.addEventListener('DOMContentLoaded', function() { document.addEventListener('keydown', onKeyDown); -});
\ No newline at end of file +}); |