mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 09:33:36 +02:00
PR comments
This commit is contained in:
parent
208e41efd1
commit
db95657455
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue