This commit is contained in:
Nathan DECHER 2020-04-13 22:54:17 +02:00
parent 5a569cbaf9
commit efa4d9f80f

View file

@ -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();