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:
@@ -6316,6 +6316,9 @@ int VKToWX(WXWORD vk, WXLPARAM lParam, wchar_t *uc)
|
|||||||
// don't use ChooseNormalOrExtended() here as the keys are reversed
|
// don't use ChooseNormalOrExtended() here as the keys are reversed
|
||||||
// here: numpad enter is the extended one
|
// here: numpad enter is the extended one
|
||||||
wxk = HIWORD(lParam) & KF_EXTENDED ? WXK_NUMPAD_ENTER : WXK_RETURN;
|
wxk = HIWORD(lParam) & KF_EXTENDED ? WXK_NUMPAD_ENTER : WXK_RETURN;
|
||||||
|
|
||||||
|
if ( uc )
|
||||||
|
*uc = WXK_RETURN;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user