diff --git a/src/gui.cpp b/src/gui.cpp index a909bd2..684469f 100644 --- a/src/gui.cpp +++ b/src/gui.cpp @@ -421,31 +421,31 @@ void GUI::initToolBar() IGUIToolBar *toolbar = env->addToolBar(0, E_GUI_ID_TOOLBAR); text = env->addStaticText(L"Animation:", - rect(20,5,120,25), false, false, toolbar); + rect(20,6,120,25), false, false, toolbar); text = env->addStaticText(L"Start", - rect(130,5,160,25), false, false, toolbar); + rect(130,6,160,25), false, false, toolbar); spin = env->addSpinBox(L"", rect(170,5,230,25), true, toolbar, E_GUI_ID_ANIM_START); spin->setDecimalPlaces(0); spin->setRange(0, 10000); text = env->addStaticText(L"End", - rect(255,5,280,25), false, false, toolbar); + rect(255,6,280,25), false, false, toolbar); spin = env->addSpinBox(L"", rect(290,5,350,25), true, toolbar, E_GUI_ID_ANIM_END); spin->setDecimalPlaces(0); spin->setRange(0, 10000); text = env->addStaticText(L"Speed", - rect(370,5,410,25), false, false, toolbar); + rect(370,6,410,25), false, false, toolbar); spin = env->addSpinBox(L"", rect(420,5,480,25), true, toolbar, E_GUI_ID_ANIM_SPEED); spin->setDecimalPlaces(0); spin->setRange(0, 10000); text = env->addStaticText(L"Frame", - rect(495,5,535,25), false, false, toolbar); + rect(495,6,535,25), false, false, toolbar); spin = env->addSpinBox(L"", rect(550,5,610,25), true, toolbar, E_GUI_ID_ANIM_FRAME); spin->setDecimalPlaces(0); diff --git a/src/viewer.cpp b/src/viewer.cpp index e179ae4..d7e9a56 100644 --- a/src/viewer.cpp +++ b/src/viewer.cpp @@ -468,7 +468,7 @@ bool Viewer::OnEvent(const SEvent &event) } } else if (event.EventType == EET_KEY_INPUT_EVENT && - event.KeyInput.PressedDown) + event.KeyInput.PressedDown && !gui->getFocused()) { switch (event.KeyInput.Key) { @@ -545,7 +545,7 @@ bool Viewer::OnEvent(const SEvent &event) else fov = M_ZOOM_IN(fov); setProjection(); - break; + return true; } default: break;