diff options
author | Adam Badawy <adambada@buffalo.edu> | 2015-10-24 21:39:13 -0400 |
---|---|---|
committer | Adam Badawy <adambada@buffalo.edu> | 2015-10-24 21:44:43 -0400 |
commit | 9493458b8ed4e79b77f039ec03d298510dd91549 (patch) | |
tree | 071957c4ff920ed8c61847ba83994a8482650045 /examples | |
parent | d6f44a7f56acf2ced22c00e8cd204c66da96c8da (diff) | |
download | glutin-9493458b8ed4e79b77f039ec03d298510dd91549.tar.gz glutin-9493458b8ed4e79b77f039ec03d298510dd91549.zip |
Fix issue #543
I added a match arm for the Escape key.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/fullscreen.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/fullscreen.rs b/examples/fullscreen.rs index aecfe62..92d32a3 100644 --- a/examples/fullscreen.rs +++ b/examples/fullscreen.rs @@ -50,6 +50,7 @@ fn main() { match event { glutin::Event::Closed => break, + glutin::Event::KeyboardInput(_, _, Some(glutin::VirtualKeyCode::Escape)) => break, _ => () } } |