Update SettingsPage-KeyboardShortcuts.cpp

Fix spacing, title case, capitalization, and add newline
This commit is contained in:
Derek "Turtle" Roe 2021-03-17 21:11:49 -05:00
parent daa5c3589b
commit 15fb604d64
1 changed files with 5 additions and 5 deletions

View File

@ -76,7 +76,7 @@ void COptionsShortCutsPage::OnCpuStateChanged(UINT /*Code*/, int /*id*/, HWND /*
continue;
}
//find Parent
// Find parent
HTREEITEM hParent = m_MenuItems.GetChildItem(TVI_ROOT);
while (hParent)
{
@ -139,7 +139,7 @@ void COptionsShortCutsPage::OnRemoveClicked(UINT /*Code*/, int /*id*/, HWND /*ct
CShortCutItem * ShortCut = (CShortCutItem *)m_MenuItems.GetItemData(hSelectedItem);
//Make sure an item is selected
// Make sure an item is selected
int index = m_CurrentKeys.GetCurSel();
if (index < 0)
{
@ -162,7 +162,7 @@ void COptionsShortCutsPage::OnDetectKeyClicked(UINT /*Code*/, int /*id*/, HWND /
void COptionsShortCutsPage::OnAssignClicked(UINT /*Code*/, int /*id*/, HWND /*ctl*/)
{
//Get the virtual key info
// Get the virtual key info
int index = m_VirtualKeyList.GetCurSel();
if (index < 0)
{
@ -216,7 +216,7 @@ void COptionsShortCutsPage::OnAssignClicked(UINT /*Code*/, int /*id*/, HWND /*ct
void COptionsShortCutsPage::OnShortCutChanged(UINT /*Code*/, int /*id*/, HWND /*ctl*/)
{
//Get the virtual key info
// Get the virtual key info
int index = m_VirtualKeyList.GetCurSel();
if (index < 0) { return; }
WORD key = (WORD)m_VirtualKeyList.GetItemData(index);
@ -364,4 +364,4 @@ void COptionsShortCutsPage::ResetPage()
SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0);
m_CurrentKeys.ResetContent();
CSettingsPageImpl<COptionsShortCutsPage>::ResetPage();
}
}