From 12ba0b87556d4fa8f522141eaba06369ae2e7f3f Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Tue, 12 Oct 2021 22:17:19 +0200 Subject: [PATCH] fix(detect): add missing case that prevented some keys from being detected correctly on Windows. Fix #307 --- espanso-detect/src/win32/native.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/espanso-detect/src/win32/native.cpp b/espanso-detect/src/win32/native.cpp index c6c8301..3a6f4f5 100644 --- a/espanso-detect/src/win32/native.cpp +++ b/espanso-detect/src/win32/native.cpp @@ -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 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; }