ON_BN_CLICKED(IDC_COMMIT_AMEND, &CCommitDlg::OnBnClickedCommitAmend)\r
ON_BN_CLICKED(IDC_WHOLE_PROJECT, &CCommitDlg::OnBnClickedWholeProject)\r
ON_STN_CLICKED(IDC_BUGIDLABEL, &CCommitDlg::OnStnClickedBugidlabel)\r
+ ON_COMMAND(ID_FOCUS_MESSAGE,&CCommitDlg::OnFocusMessage)\r
END_MESSAGE_MAP()\r
\r
BOOL CCommitDlg::OnInitDialog()\r
m_regKeepChangelists = CRegDWORD(_T("Software\\TortoiseGit\\KeepChangeLists"), FALSE);\r
m_bKeepChangeList = m_regKeepChangelists;\r
\r
+ m_hAccel = LoadAccelerators(AfxGetResourceHandle(),MAKEINTRESOURCE(IDR_ACC_COMMITDLG));\r
+\r
// GitConfig config;\r
// m_bWholeProject = config.KeepLocks();\r
\r
{\r
if (!m_bBlock)\r
m_tooltips.RelayEvent(pMsg);\r
+ \r
+ if (m_hAccel)\r
+ {\r
+ int ret = TranslateAccelerator(m_hWnd, m_hAccel, pMsg);\r
+ if (ret)\r
+ return TRUE;\r
+ }\r
+\r
if (pMsg->message == WM_KEYDOWN)\r
{\r
switch (pMsg->wParam)\r
{\r
// TODO: Add your control notification handler code here\r
}\r
+\r
+void CCommitDlg::OnFocusMessage()\r
+{\r
+ m_cLogMessage.SetFocus();\r
+}
\ No newline at end of file
afx_msg void OnBnClickedBugtraqbutton();\r
afx_msg void OnEnChangeLogmessage();\r
afx_msg void OnStnClickedExternalwarning();\r
+ afx_msg void OnFocusMessage();\r
afx_msg LRESULT OnGitStatusListCtrlItemCountChanged(WPARAM, LPARAM);\r
afx_msg LRESULT OnGitStatusListCtrlNeedsRefresh(WPARAM, LPARAM);\r
afx_msg LRESULT OnGitStatusListCtrlCheckChanged(WPARAM, LPARAM);\r
CPathWatcher m_pathwatcher;\r
\r
CBugTraqAssociation m_bugtraq_association;\r
+ HACCEL m_hAccel;\r
\r
public:\r
afx_msg void OnBnClickedSignOff();\r