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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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,
}