fix(detect): add missing case that prevented some keys from being detected correctly on Windows. Fix #307

This commit is contained in:
Federico Terzi 2021-10-12 22:17:19 +02:00
parent cba4c41006
commit 12ba0b8755

View File

@ -116,7 +116,7 @@ LRESULT CALLBACK detect_window_procedure(HWND window, unsigned int msg, WPARAM w
{ {
// We only want KEY UP AND KEY DOWN events // We only want KEY UP AND KEY DOWN events
if (raw->data.keyboard.Message != WM_KEYDOWN && raw->data.keyboard.Message != WM_KEYUP && if (raw->data.keyboard.Message != WM_KEYDOWN && raw->data.keyboard.Message != WM_KEYUP &&
raw->data.keyboard.Message != WM_SYSKEYDOWN) raw->data.keyboard.Message != WM_SYSKEYDOWN && raw->data.keyboard.Message != WM_SYSKEYUP)
{ {
return 0; return 0;
} }