]> git.saurik.com Git - wxWidgets.git/commitdiff
Only add FVIRTKEY if isVirtual is TRUE
authorJulian Smart <julian@anthemion.co.uk>
Wed, 6 Jun 2001 10:46:00 +0000 (10:46 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 6 Jun 2001 10:46:00 +0000 (10:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10437 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/accel.cpp

index 3f2cb376842862c87497b35e34e2cabc36253e4d..1c4c6fe2cf0b34a936866a36943e2443b591aa5f 100644 (file)
@@ -116,7 +116,8 @@ wxAcceleratorTable::wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]
 
         bool isVirtual;
         WORD key = wxCharCodeWXToMSW(entries[i].m_keyCode, & isVirtual);
-        fVirt |= FVIRTKEY;
+        if (isVirtual)
+            fVirt |= FVIRTKEY;
 
         WORD cmd = entries[i].m_command;