Fix up short cut name with multiple selectors

This commit is contained in:
zilmar 2020-06-06 10:34:27 +09:30
parent 98db6bd93c
commit ae0410487c
1 changed files with 5 additions and 4 deletions

View File

@ -185,10 +185,11 @@ CMenuShortCutKey::CMenuShortCutKey(WORD key, bool bCtrl, bool bAlt, bool bShift,
break;
}
}
std::string ShortCutName = stdstr().FromUTF16(m_ShortCutName.c_str());
if (m_bShift) { m_ShortCutName = stdstr_f("Shift+%s", ShortCutName.c_str()).ToUTF16(); }
if (m_bCtrl) { m_ShortCutName = stdstr_f("Ctrl+%s", ShortCutName.c_str()).ToUTF16(); }
if (m_bAlt) { m_ShortCutName = stdstr_f("Alt+%s", ShortCutName.c_str()).ToUTF16(); }
stdstr ShortCutName = stdstr().FromUTF16(m_ShortCutName.c_str());
if (m_bShift) { ShortCutName = stdstr_f("Shift+%s", ShortCutName.c_str()); }
if (m_bCtrl) { ShortCutName = stdstr_f("Ctrl+%s", ShortCutName.c_str()); }
if (m_bAlt) { ShortCutName = stdstr_f("Alt+%s", ShortCutName.c_str()); }
m_ShortCutName = ShortCutName.ToUTF16();
}
VIRTUAL_KEY * CMenuShortCutKey::VirtualKeyList(int &Size)