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:
@@ -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
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user