fix windows input capture not releasing keys (#241)

This commit is contained in:
AdamJedl
2024-12-03 11:45:41 +01:00
committed by GitHub
parent 1bf475018a
commit afe5f0b8db

View File

@@ -218,7 +218,7 @@ unsafe fn to_key_event(wparam: WPARAM, lparam: LPARAM) -> Option<KeyboardEvent>
WPARAM(p) if p == WM_SYSKEYUP as usize => Some(KeyboardEvent::Key {
time: 0,
key: scan_code,
state: 1,
state: 0,
}),
_ => None,
}