Always use FVIRTKEY for the accelerators under MSW.
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
This commit is contained in:
@@ -6095,11 +6095,8 @@ int wxCharCodeMSWToWX(int vk, WXLPARAM lParam)
|
||||
return wxk;
|
||||
}
|
||||
|
||||
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++ )
|
||||
{
|
||||
@@ -6174,8 +6171,6 @@ WXWORD wxCharCodeWXToMSW(int wxk, bool *isVirtual)
|
||||
else
|
||||
#endif // !__WXWINCE__
|
||||
{
|
||||
if ( isVirtual )
|
||||
*isVirtual = false;
|
||||
vk = (WXWORD)wxk;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user