From 24d724bcfe7e0e446815b31c5f32701341d1a99c Mon Sep 17 00:00:00 2001 From: TatriX Date: Thu, 12 Dec 2019 17:53:20 +0100 Subject: [PATCH] Update events.md --- crate/guides/events.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crate/guides/events.md b/crate/guides/events.md index 5e7cf15..d2b57fc 100644 --- a/crate/guides/events.md +++ b/crate/guides/events.md @@ -177,7 +177,7 @@ where it handles text input triggered by a key press, and uses prevent_default() ## Window events We handle events triggered by the overall window specially, since it doesn't fit directly into our virtual DOM. We pass to `App::builder::window_events()` a function that accepts a - ref to `Model`, and returns a `Vec`. We use it to control + ref to `Model`, and returns a `Vec`. We use it to control which listeners are attached to the window based on the model. Excerpt from the [window_events](https://github.com/seed-rs/seed/blob/master/examples/window_events/src/lib.rs) example: