From: Vadim Zeitlin Date: Tue, 26 Mar 2013 11:00:20 +0000 (+0000) Subject: Use WXK_DELETE as Unicode key code for VK_DELETE in wxMSW. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fec65d7df3f84fe5cf0570262c09189065aff562 Use WXK_DELETE as Unicode key code for VK_DELETE in wxMSW. U+007F is a Unicode character so we should set Unicode key code to this value for VK_DELETE presses. This also makes wxMSW consistent with wxGTK. Closes #3458. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 041edce030..650954d4e4 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -6309,6 +6309,9 @@ int VKToWX(WXWORD vk, WXLPARAM lParam, wchar_t *uc) case VK_DELETE: wxk = ChooseNormalOrExtended(lParam, WXK_NUMPAD_DELETE, WXK_DELETE); + + if ( uc ) + *uc = WXK_DELETE; break; case VK_RETURN: