diff options
Diffstat (limited to 'external_assets/shell.html')
| -rw-r--r-- | external_assets/shell.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/external_assets/shell.html b/external_assets/shell.html index c87a31f..91cceef 100644 --- a/external_assets/shell.html +++ b/external_assets/shell.html @@ -76,6 +76,17 @@ return canvas; })() }; + /*var elem = document.getElementById('canvas'); + elem.addEventListener('click', function(event) { + window.focus(); + elem.setFocus(); + }); + document.body.addEventListener('click', function(event) { + window.focus(); + elem.setFocus(); + });*/ + window.onload = function () { window.focus(); }; + window.onclick = function () { window.focus(); }; </script> {{{ SCRIPT }}} </body> |
