Do not stop propegation for key events
@@ -600,7 +600,6 @@ impl Window {
if update_modifiers(&mut input.modifiers, &event) {
let modifiers = input.modifiers;
input.events.push(Event::ModifiersChange { modifiers });
- event.stop_propagation();
event.prevent_default();
}
let key = event.key();
@@ -611,12 +610,10 @@ impl Window {
modifiers,
handled: false,
});
- event.stop_propagation();
event.prevent_default();
}
if !modifiers.ctrl && !modifiers.command && !should_ignore_key(&key) {
input.events.push(Event::Text(key));
- event.stop_propagation();
event.prevent_default();
input.request_animation_frame();
@@ -642,7 +639,6 @@ impl Window {
if update_modifiers(&mut input.modifiers, &event) {
let modifiers = input.modifiers;
input.events.push(Event::ModifiersChange { modifiers });
- event.stop_propagation();
event.prevent_default();
}
if let Some(kind) = translate_key(&event.key()) {
@@ -652,7 +648,6 @@ impl Window {
modifiers,
handled: false,
});
- event.stop_propagation();
event.prevent_default();
input.request_animation_frame();
