Correction to accelerator bug fix: add FVIRTKEY if ctrl, alt or shift
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2317bff237
commit
fae5c45283
@ -108,11 +108,20 @@ wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]
|
|||||||
{
|
{
|
||||||
BYTE fVirt = 0;
|
BYTE fVirt = 0;
|
||||||
if (entries[i].m_flags & wxACCEL_ALT)
|
if (entries[i].m_flags & wxACCEL_ALT)
|
||||||
|
{
|
||||||
fVirt |= FALT;
|
fVirt |= FALT;
|
||||||
|
fVirt |= FVIRTKEY;
|
||||||
|
}
|
||||||
if (entries[i].m_flags & wxACCEL_SHIFT)
|
if (entries[i].m_flags & wxACCEL_SHIFT)
|
||||||
|
{
|
||||||
fVirt |= FSHIFT;
|
fVirt |= FSHIFT;
|
||||||
|
fVirt |= FVIRTKEY;
|
||||||
|
}
|
||||||
if (entries[i].m_flags & wxACCEL_CTRL)
|
if (entries[i].m_flags & wxACCEL_CTRL)
|
||||||
|
{
|
||||||
fVirt |= FCONTROL;
|
fVirt |= FCONTROL;
|
||||||
|
fVirt |= FVIRTKEY;
|
||||||
|
}
|
||||||
|
|
||||||
bool isVirtual;
|
bool isVirtual;
|
||||||
WORD key = wxCharCodeWXToMSW(entries[i].m_keyCode, & isVirtual);
|
WORD key = wxCharCodeWXToMSW(entries[i].m_keyCode, & isVirtual);
|
||||||
|
Loading…
Reference in New Issue
Block a user