From 2317bff237632d1104593dd5f3e8afcb2517ef6b Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 6 Jun 2001 10:46:00 +0000 Subject: [PATCH] Only add FVIRTKEY if isVirtual is TRUE git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10437 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/accel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/msw/accel.cpp b/src/msw/accel.cpp index 3f2cb37684..1c4c6fe2cf 100644 --- a/src/msw/accel.cpp +++ b/src/msw/accel.cpp @@ -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; -- 2.45.2