//---------------------------------------------------------------------------------------------------- int32_t UIDialogController::onKeyUp (const VstKeyCode& code, CFrame* frame) { CView* focusView = frame->getFocusView (); if (focusView) return focusView->onKeyUp (const_cast<VstKeyCode&> (code)); return -1; }
//----------------------------------------------------------------------------- int32_t CFrame::onKeyUp (VstKeyCode& keyCode) { int32_t result = -1; result = keyboardHooksOnKeyUp (keyCode); if (result == -1 && pFocusView) { if (pFocusView->getMouseEnabled ()) result = pFocusView->onKeyUp (keyCode); if (result == -1) { CView* parent = pFocusView->getParentView (); while (parent != this && result == -1) { if (parent->getMouseEnabled ()) result = parent->onKeyUp (keyCode); parent = parent->getParentView (); } } } if (result == -1 && pModalView) result = pModalView->onKeyUp (keyCode); return result; }