Set Unicode key code correctly for key events for WXK_RETURN in wxMSW.
WXK_RETURN is an ASCII character so return it from wxKeyEvent::GetUnicodeKey() for EVT_KEY_{DOWN,UP} events, especially as it was already done for EVT_CHAR ones. See #13558. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e65ae1d36d
commit
b4c0df15e0
@ -6316,6 +6316,9 @@ int VKToWX(WXWORD vk, WXLPARAM lParam, wchar_t *uc)
|
||||
// don't use ChooseNormalOrExtended() here as the keys are reversed
|
||||
// here: numpad enter is the extended one
|
||||
wxk = HIWORD(lParam) & KF_EXTENDED ? WXK_NUMPAD_ENTER : WXK_RETURN;
|
||||
|
||||
if ( uc )
|
||||
*uc = WXK_RETURN;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user