]> git.saurik.com Git - wxWidgets.git/commitdiff
Use WXK_DELETE as Unicode key code for VK_DELETE in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 26 Mar 2013 11:00:20 +0000 (11:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 26 Mar 2013 11:00:20 +0000 (11:00 +0000)
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

src/msw/window.cpp

index 041edce030cf5d17a448f141987f5d354d31e5e3..650954d4e4681bfa4f09d43375ec08197a96dd42 100644 (file)
@@ -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: