We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I load the Keypress script in my own site or even on https://dmauro.github.io/Keypress/, it does not work at all.
Browser: Firefox Quantum 60.0.1 (64 bit) OS: Ubuntu 17.10
Error messages: TypeError: window.keypress is undefined in main.js:5:3 Trace: @https://dmauro.github.io/Keypress/js/main.js:5:3 @https://dmauro.github.io/Keypress/js/main.js:2:2
The text was updated successfully, but these errors were encountered:
@YTCuber Any solution on this ? same error occurring for me
Sorry, something went wrong.
Same problem for me: window.keypress is undefined
Hi.
Not sure if you have already tried this but in my case it was a silly mistake.
In my HTML code I was loading my own JS file -from where I was trying to use keypress- before loading keypress.js itself.
<script src='js/myFile.js'></script> <script src='js/keypress.js'></script>
<script src='js/myFile.js'></script>
<script src='js/keypress.js'></script>
I moved the reference to keypress.js to the top
<script src='js/keypress.js'></script> <script src='js/myFile.js'></script>
and that was it.
Hope this helps.
No branches or pull requests
When I load the Keypress script in my own site or even on https://dmauro.github.io/Keypress/, it does not work at all.
Browser: Firefox Quantum 60.0.1 (64 bit)
OS: Ubuntu 17.10
Error messages:
TypeError: window.keypress is undefined in main.js:5:3
Trace:
@https://dmauro.github.io/Keypress/js/main.js:5:3
@https://dmauro.github.io/Keypress/js/main.js:2:2
The text was updated successfully, but these errors were encountered: