Add support for VK_OEM_102 key under wxMSW.

This is the "<>|" key on German keyboard and is also used in many other
layouts so failing to handle it resulted in not receiving EVT_KEY_XXX events
for these keys in wxWidgets programs.

Closes #13558.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-11-27 19:50:53 +00:00
parent b4c0df15e0
commit fc4070fc9d
2 changed files with 3 additions and 0 deletions

View File

@@ -94,6 +94,7 @@
#define VK_OEM_5 0xDC #define VK_OEM_5 0xDC
#define VK_OEM_6 0xDD #define VK_OEM_6 0xDD
#define VK_OEM_7 0xDE #define VK_OEM_7 0xDE
#define VK_OEM_102 0xE2
#endif #endif
#ifndef VK_OEM_COMMA #ifndef VK_OEM_COMMA

View File

@@ -3153,6 +3153,7 @@ wxWindowMSW::MSWHandleMessage(WXLRESULT *result,
case VK_OEM_5: case VK_OEM_5:
case VK_OEM_6: case VK_OEM_6:
case VK_OEM_7: case VK_OEM_7:
case VK_OEM_102:
case VK_OEM_PLUS: case VK_OEM_PLUS:
case VK_OEM_COMMA: case VK_OEM_COMMA:
case VK_OEM_MINUS: case VK_OEM_MINUS:
@@ -6238,6 +6239,7 @@ int VKToWX(WXWORD vk, WXLPARAM lParam, wchar_t *uc)
case VK_OEM_5: case VK_OEM_5:
case VK_OEM_6: case VK_OEM_6:
case VK_OEM_7: case VK_OEM_7:
case VK_OEM_102:
// MapVirtualKey() returns 0 if it fails to convert the virtual // MapVirtualKey() returns 0 if it fails to convert the virtual
// key which nicely corresponds to our WXK_NONE. // key which nicely corresponds to our WXK_NONE.
wxk = ::MapVirtualKey(vk, MAPVK_VK_TO_CHAR); wxk = ::MapVirtualKey(vk, MAPVK_VK_TO_CHAR);