mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-02 06:40:06 -04:00
Rename ControlFlow variant from Complete to Break
This commit is contained in:
@@ -37,10 +37,10 @@ fn main() {
|
||||
match event {
|
||||
Event::WindowEvent { event, .. } => {
|
||||
match event {
|
||||
WindowEvent::Closed => return ControlFlow::Complete,
|
||||
WindowEvent::Closed => return ControlFlow::Break,
|
||||
WindowEvent::KeyboardInput {
|
||||
input: winit::KeyboardInput { virtual_keycode: Some(winit::VirtualKeyCode::Escape), .. }, ..
|
||||
} => return ControlFlow::Complete,
|
||||
} => return ControlFlow::Break,
|
||||
_ => ()
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user