Browse Source

Make Scene only consume Esc if fullscreen.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
0c1213f0ba
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/app/Scene.cpp

+ 3
- 2
src/app/Scene.cpp View File

@@ -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. // 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 (e.key == GLFW_KEY_ESCAPE && (e.mods & RACK_MOD_MASK) == 0) {
if (APP->window->isFullScreen())
if (APP->window->isFullScreen()) {
APP->window->setFullScreen(false); APP->window->setFullScreen(false);
e.consume(this);
e.consume(this);
}
} }


// Module selections // Module selections


Loading…
Cancel
Save