w32_common: Fix extended keys

The KF_* flags work on the HIWORD of lParam. Whoops
This commit is contained in:
James Ross-Gowan
2014-01-21 00:41:56 +01:00
committed by wm4
parent 119efdc197
commit 63a76b3d1c
+1 -1
View File
@@ -476,7 +476,7 @@ static bool translate_key_input(MSG *msg)
msg->message != WM_KEYUP && msg->message != WM_SYSKEYUP)
return false;
bool ext = msg->lParam & KF_EXTENDED;
bool ext = HIWORD(msg->lParam) & KF_EXTENDED;
int mpkey = mp_w32_vkey_to_mpkey(msg->wParam, ext);
// If we don't want the key, return false so TranslateMessage can convert