From aee04f4401ee060039446dfa846fd22a609e5c21 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Mon, 22 Feb 2016 21:47:50 +0100 Subject: [PATCH] Deselect surface on space key press --- src/Application/ProjectionMappingState.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Application/ProjectionMappingState.cpp b/src/Application/ProjectionMappingState.cpp index 878b8e5..88fd909 100644 --- a/src/Application/ProjectionMappingState.cpp +++ b/src/Application/ProjectionMappingState.cpp @@ -169,6 +169,10 @@ void ProjectionMappingState::onKeyPressed(Application * app, ofKeyEventArgs & ar } break; + case ' ': + app->getCmdManager()->exec(new DeselectSurfaceCmd(app->getSurfaceManager())); + break; + default: break; }