From 1ca70b8cbaa907278b2fe8573046e87d5324e152 Mon Sep 17 00:00:00 2001 From: aliraza556 Date: Sun, 11 Aug 2024 21:39:14 +0500 Subject: [PATCH] small fix --- src/ui/fullscreen.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ui/fullscreen.ts b/src/ui/fullscreen.ts index 6adf3da36..3364fac71 100644 --- a/src/ui/fullscreen.ts +++ b/src/ui/fullscreen.ts @@ -54,3 +54,10 @@ function isAppInNativeFullscreenMode(): boolean { document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement ); } + +document.addEventListener('keydown', (event) => { + if (event.shiftKey && event.key === 'F') { + const fullscreenInstance = new Fullscreen(document.querySelector('.fullscreen-button')); + fullscreenInstance.toggle(); + } +});