From dc2ddd0303a1f9ab8c6ada32bd86a0a3a9eae7d4 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Fri, 14 Aug 2015 17:12:00 -0700 Subject: [PATCH] switch statement spacing --- interface/src/Application.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index ca7ee8d98c..b8c9b78cc5 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -1263,18 +1263,18 @@ bool Application::event(QEvent* event) { switch (event->type()) { case QEvent::KeyPress: case QEvent::KeyRelease: { - auto entityScriptingInterface = DependencyManager::get(); - auto entity = entityScriptingInterface->getEntityTree()->findEntityByID(_keyboardFocusedItem); - RenderableWebEntityItem* webEntity = dynamic_cast(entity.get()); - if (webEntity && webEntity->getEventHandler()) { - event->setAccepted(false); - QCoreApplication::sendEvent(webEntity->getEventHandler(), event); - if (event->isAccepted()) { - return true; - } + auto entityScriptingInterface = DependencyManager::get(); + auto entity = entityScriptingInterface->getEntityTree()->findEntityByID(_keyboardFocusedItem); + RenderableWebEntityItem* webEntity = dynamic_cast(entity.get()); + if (webEntity && webEntity->getEventHandler()) { + event->setAccepted(false); + QCoreApplication::sendEvent(webEntity->getEventHandler(), event); + if (event->isAccepted()) { + return true; } - break; } + break; + } default: break;