Not using FVIRTKEY results in problems in non-US keyboard layouts and, in
fact, we were already always using it because wxCharCodeWXToMSW() returned
true in its output IsVirtual argument most of the time.
Just do it always now and also remove IsVirtual parameter with badly (if at
all...) defined meaning from wxCharCodeWXToMSW() as it's not used anywhere any
longer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62913
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// kbd code translation
WXDLLIMPEXP_CORE int wxCharCodeMSWToWX(int keySym, WXLPARAM lParam = 0);
// kbd code translation
WXDLLIMPEXP_CORE int wxCharCodeMSWToWX(int keySym, WXLPARAM lParam = 0);
-WXDLLIMPEXP_CORE WXWORD wxCharCodeWXToMSW(int id, bool *IsVirtual = NULL);
+WXDLLIMPEXP_CORE WXWORD wxCharCodeWXToMSW(int id);
// window creation helper class: before creating a new HWND, instantiate an
// object of this class on stack - this allows to process the messages sent to
// window creation helper class: before creating a new HWND, instantiate an
// object of this class on stack - this allows to process the messages sent to
#include "wx/msw/private.h"
#include "wx/msw/private.h"
-extern WXWORD wxCharCodeWXToMSW(int id, bool *isVirtual);
-
IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable, wxObject)
// ----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable, wxObject)
// ----------------------------------------------------------------------------
{
int flags = entries[i].GetFlags();
{
int flags = entries[i].GetFlags();
if ( flags & wxACCEL_ALT )
if ( flags & wxACCEL_ALT )
- fVirt |= FALT | FVIRTKEY;
if ( flags & wxACCEL_SHIFT )
if ( flags & wxACCEL_SHIFT )
- fVirt |= FSHIFT | FVIRTKEY;
if ( flags & wxACCEL_CTRL )
if ( flags & wxACCEL_CTRL )
- fVirt |= FCONTROL | FVIRTKEY;
-
- bool isVirtual;
- WORD key = wxCharCodeWXToMSW(entries[i].GetKeyCode(), &isVirtual);
- if (isVirtual)
- fVirt |= FVIRTKEY;
+ WORD key = wxCharCodeWXToMSW(entries[i].GetKeyCode());
arr[i].fVirt = fVirt;
arr[i].key = key;
arr[i].fVirt = fVirt;
arr[i].key = key;
-WXWORD wxCharCodeWXToMSW(int wxk, bool *isVirtual)
+WXWORD wxCharCodeWXToMSW(int wxk)
- if ( isVirtual )
- *isVirtual = true;
-
// check the table first
for ( size_t n = 0; n < WXSIZEOF(gs_specialKeys); n++ )
{
// check the table first
for ( size_t n = 0; n < WXSIZEOF(gs_specialKeys); n++ )
{
else
#endif // !__WXWINCE__
{
else
#endif // !__WXWINCE__
{
- if ( isVirtual )
- *isVirtual = false;