We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f79516e commit 294a414Copy full SHA for 294a414
1 file changed
ash-graphics/ash-graphics/src/main.rs
@@ -134,19 +134,17 @@ pub fn main() -> anyhow::Result<()> {
134
WindowEvent::KeyboardInput {
135
event:
136
winit::event::KeyEvent {
137
- logical_key: winit::keyboard::Key::Named(key),
+ logical_key:
138
+ winit::keyboard::Key::Named(winit::keyboard::NamedKey::Escape),
139
state: winit::event::ElementState::Pressed,
140
..
141
},
142
- } => match key {
143
- winit::keyboard::NamedKey::Escape => event_loop_window_target.exit(),
144
- _ => {}
145
- },
+ }
+ | WindowEvent::CloseRequested => event_loop_window_target.exit(),
146
WindowEvent::Resized(_) => {
147
swapchain.should_recreate();
148
}
149
- WindowEvent::CloseRequested => event_loop_window_target.exit(),
150
_ => {}
151
152
0 commit comments