From 1004000ba24198fcb37b225f79f0b8cca2516606 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Sun, 18 Jul 2021 15:34:41 +0200 Subject: [PATCH] Leave fullscreen with "Esc" key --- src/actions.js | 4 ++++ ui/help-overlay.ui | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/actions.js b/src/actions.js index a1fa0f4d..53201880 100644 --- a/src/actions.js +++ b/src/actions.js @@ -21,6 +21,7 @@ var actions = { change_repeat: ['r'], reveal_controls: ['Return'], toggle_fullscreen: ['F11', 'f'], + leave_fullscreen: ['Escape'], quit: ['q', 'q'], }; @@ -85,6 +86,9 @@ function handleAction(action, window) if(clapperWidget.isFullscreenMode) clapperWidget.revealControls(); break; + case 'leave_fullscreen': + if(!clapperWidget.isFullscreenMode) + break; case 'toggle_fullscreen': clapperWidget.toggleFullscreen(); break; diff --git a/ui/help-overlay.ui b/ui/help-overlay.ui index 7914379d..5c1a059c 100644 --- a/ui/help-overlay.ui +++ b/ui/help-overlay.ui @@ -20,6 +20,12 @@ F11 f + + + Leave fullscreen + Escape + + Reveal OSD (fullscreen only)