Handle modifiers on Release instead of Press events on Windows. Fix #328

This commit is contained in:
Federico Terzi 2020-06-24 22:10:19 +02:00
parent 2341f9c9a2
commit 958d0669e9

View File

@ -173,8 +173,7 @@ extern "C" fn keypress_callback(
}
} else if event_type == 1 {
// Modifier event
if is_key_down == 1 {
// Keyup event
if is_key_down == 0 {
let modifier: Option<KeyModifier> = match (key_code, variant) {
(0x5B, _) => Some(LEFT_META),
(0x5C, _) => Some(RIGHT_META),