Hello!
I'm testing a small archive on the site demo.moodle.net
This is a SCORM package.
It contains Canvas HTML5 + JavaScript and lessons that require input from the keyboard.
I write on JS:
if (window) {
window.onkeypress = _this.keyPressW;
window.onkeydown = _this.keyDownW;
window.onkeyup = _this.keyUpW;
}
if (document) {
document.onkeypress = _this.keyPressD;
document.onkeydown = _this.keyDownD;
document.onkeyup = _this.keyUpD;
}
But no function works on demo.moodle.net
Everything is working fine on my site.
Tell me please, is there a lock on demo.moodle.net for these events?
Why these events may not work?
Thank you so much in advance for your reply!