From fae5c452834a398c06a318e5da65cff7791eff2b Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 6 Jun 2001 11:11:58 +0000 Subject: [PATCH] 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 --- src/msw/accel.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/msw/accel.cpp b/src/msw/accel.cpp index 1c4c6fe2cf..0e86f39c36 100644 --- a/src/msw/accel.cpp +++ b/src/msw/accel.cpp @@ -108,11 +108,20 @@ wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[] { BYTE fVirt = 0; if (entries[i].m_flags & wxACCEL_ALT) + { fVirt |= FALT; + fVirt |= FVIRTKEY; + } if (entries[i].m_flags & wxACCEL_SHIFT) + { fVirt |= FSHIFT; + fVirt |= FVIRTKEY; + } if (entries[i].m_flags & wxACCEL_CTRL) + { fVirt |= FCONTROL; + fVirt |= FVIRTKEY; + } bool isVirtual; WORD key = wxCharCodeWXToMSW(entries[i].m_keyCode, & isVirtual);