Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aliraza556 committed Aug 11, 2024
1 parent 2ff990c commit 1ca70b8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ui/fullscreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});

0 comments on commit 1ca70b8

Please sign in to comment.