aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Badawy <adambada@buffalo.edu>2015-10-24 21:39:13 -0400
committerAdam Badawy <adambada@buffalo.edu>2015-10-24 21:44:43 -0400
commit9493458b8ed4e79b77f039ec03d298510dd91549 (patch)
tree071957c4ff920ed8c61847ba83994a8482650045
parentd6f44a7f56acf2ced22c00e8cd204c66da96c8da (diff)
downloadglutin-9493458b8ed4e79b77f039ec03d298510dd91549.tar.gz
glutin-9493458b8ed4e79b77f039ec03d298510dd91549.zip
Fix issue #543
I added a match arm for the Escape key.
-rw-r--r--examples/fullscreen.rs1
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,
_ => ()
}
}