From 0c1213f0ba3151a168a43c19c86e9458f388821c Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 24 Aug 2021 22:29:01 -0400 Subject: [PATCH] Make Scene only consume Esc if fullscreen. --- src/app/Scene.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/Scene.cpp b/src/app/Scene.cpp index 0794f6c4..4783989e 100644 --- a/src/app/Scene.cpp +++ b/src/app/Scene.cpp @@ -202,9 +202,10 @@ void Scene::onHoverKey(const HoverKeyEvent& e) { } // Alternate key command for exiting fullscreen, since F11 doesn't work reliably on Mac due to "Show desktop" OS binding. if (e.key == GLFW_KEY_ESCAPE && (e.mods & RACK_MOD_MASK) == 0) { - if (APP->window->isFullScreen()) + if (APP->window->isFullScreen()) { APP->window->setFullScreen(false); - e.consume(this); + e.consume(this); + } } // Module selections