fixed duplicated script operations in last fix .

This commit is contained in:
Zero Fanker 2024-07-03 18:38:39 -04:00
parent 1f2d77f711
commit b094b04acb
2 changed files with 0 additions and 16 deletions

View file

@ -1024,8 +1024,6 @@ BOOL CScriptTypes::PreTranslateMessage(MSG* pMsg)
int ret = -1;
if (pMsg->message == WM_KEYDOWN) {
ret = onMessageKeyDown(pMsg);
} else if (pMsg->message == WM_LBUTTONUP) {
ret = onMessageKeyUp(pMsg);
}
return ret < 0 ? this->CDialog::PreTranslateMessage(pMsg) : ret;
@ -1051,17 +1049,4 @@ BOOL CScriptTypes::onMessageKeyDown(MSG* pMsg)
}
}
return TRUE;
}
BOOL CScriptTypes::onMessageKeyUp(MSG* pMsg)
{
if (pMsg->hwnd == this->GetDlgItem(IDC_SCRIPT_COPY)->GetSafeHwnd()) {
this->OnBnClickedScriptCopy();
} else if (pMsg->hwnd == this->GetDlgItem(IDC_COPYACTION)->GetSafeHwnd()) {
this->OnBnClickedCopyaction();
} else if (pMsg->hwnd == this->GetDlgItem(IDC_ADDACTION)->GetSafeHwnd()) {
this->OnAddaction();
} else if (pMsg->hwnd == this->GetDlgItem(IDC_ADD)->GetSafeHwnd()) {
this->OnAdd();
}
return -1;
}

View file

@ -159,7 +159,6 @@ protected:
CString getCurrentTypeID();
void insertAction(int curSel, const CString& scriptTypeId, const CString& value);
BOOL onMessageKeyDown(MSG* pMsg);
BOOL onMessageKeyUp(MSG* pMsg);
CEdit m_Description;
CComboBox m_Template;