[egui_glium] Fix a bug where key releases weren't sent to Egui
Fixes
@@ -123,7 +123,10 @@ pub fn input_to_egui(
}
}
}
- } else if let Some(key) = translate_virtual_key_code(keycode) {
+ }
+ }
+
+ if let Some(key) = translate_virtual_key_code(keycode) {
input_state.raw.events.push(Event::Key {
key,
pressed,
@@ -132,7 +135,6 @@ pub fn input_to_egui(
}
}
}
- }
MouseWheel { delta, .. } => {
match delta {
glutin::event::MouseScrollDelta::LineDelta(x, y) => {
