fixed #32
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user