bool SysOptDialog::EventChildKey(Win* child, cevent_key* pEvent) { if (pEvent->Type() == EV_KEYDOWN) { if (pEvent->Key() == VK_RETURN && langButton.InFocus()) //prevent autoenter return false; }; return NCVertDialog::EventChildKey(child, pEvent); }
bool SftpLogonDialog::EventChildKey( Win* child, cevent_key* pEvent ) { if ( pEvent->Type() == EV_KEYDOWN ) { if ( pEvent->Key() == VK_RETURN && charsetButton.InFocus() ) //prevent autoenter { return false; } }; return NCVertDialog::EventChildKey( child, pEvent ); }