summaryrefslogtreecommitdiffstats
path: root/winit/src/application.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-09 22:35:25 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-03-09 22:35:25 +0100
commitaac7ad3e14aaa9faf7d52fe9b91bc64cb037d576 (patch)
tree0146f9d60bdb6ad337463e4270c25e94db394338 /winit/src/application.rs
parent5a91b52ef4066701d82a897b44a3f90412f210d2 (diff)
downloadiced-aac7ad3e14aaa9faf7d52fe9b91bc64cb037d576.tar.gz
iced-aac7ad3e14aaa9faf7d52fe9b91bc64cb037d576.tar.bz2
iced-aac7ad3e14aaa9faf7d52fe9b91bc64cb037d576.zip
Update `winit` to `0.22`
Diffstat (limited to '')
-rw-r--r--winit/src/application.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs
index f5aa799c..891b8f12 100644
--- a/winit/src/application.rs
+++ b/winit/src/application.rs
@@ -347,6 +347,9 @@ pub trait Application: Sized {
WindowEvent::CloseRequested => {
*control_flow = ControlFlow::Exit;
}
+ WindowEvent::ModifiersChanged(new_modifiers) => {
+ modifiers = new_modifiers;
+ }
#[cfg(target_os = "macos")]
WindowEvent::KeyboardInput {
input:
@@ -382,12 +385,6 @@ pub trait Application: Sized {
events.push(event);
}
}
- event::Event::DeviceEvent {
- event: event::DeviceEvent::ModifiersChanged(new_modifiers),
- ..
- } => {
- modifiers = new_modifiers;
- }
_ => {
*control_flow = ControlFlow::Wait;
}