Codinget 5 years ago
parent 99599a3756
commit 9f85e7aab1
  1. 1
      src/js/main.js

@ -58,6 +58,7 @@
resizeCanvas();
window.addEventListener('resize', resizeCanvas);
window.addEventListener('keydown', async e => {
if(e.target.tagName.toLowerCase()=='input') return;
if(e.key=='f') {
if(document.fullscreenElement) await document.exitFullscreen();
else await main.requestFullscreen();

Loading…
Cancel
Save