1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 01:52:19 +00:00

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 09:59:17 +11:00 committed by wm4
parent 119efdc197
commit 63a76b3d1c

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