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:
parent
119efdc197
commit
63a76b3d1c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user