PR comments

This commit is contained in:
Brad Davis 2015-08-14 16:40:53 -07:00
parent 208e41efd1
commit db95657455

View file

@ -1262,8 +1262,7 @@ bool Application::event(QEvent* event) {
if (!_keyboardFocusedItem.isInvalidID()) {
switch (event->type()) {
case QEvent::KeyPress:
case QEvent::KeyRelease:
{
case QEvent::KeyRelease: {
auto entityScriptingInterface = DependencyManager::get<EntityScriptingInterface>();
auto entity = entityScriptingInterface->getEntityTree()->findEntityByID(_keyboardFocusedItem);
RenderableWebEntityItem* webEntity = dynamic_cast<RenderableWebEntityItem*>(entity.get());
@ -1274,7 +1273,10 @@ bool Application::event(QEvent* event) {
return true;
}
}
break;
}
default:
break;
}
}