Fix up short cut name with multiple selectors
This commit is contained in:
parent
98db6bd93c
commit
ae0410487c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue