diff --git a/src/ui/fullscreen.ts b/src/ui/fullscreen.ts index 0c4eb27ec..86cfa1c13 100644 --- a/src/ui/fullscreen.ts +++ b/src/ui/fullscreen.ts @@ -6,6 +6,15 @@ export class Fullscreen { if (isFullscreen) { button.classList.add('fullscreenMode'); } + + document.addEventListener('keydown', (event) => { + if (event.key === 'F11') { + event.preventDefault(); + this.toggle(); + } else if (event.shiftKey && event.key === 'F') { + this.toggle(); + } + }); } toggle() {