Skip to content

Commit

Permalink
Update events.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TatriX authored and David-OConnor committed Dec 17, 2019
1 parent 6e79997 commit 24d724b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crate/guides/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<devents::Listener>`. We use it to control
ref to `Model`, and returns a `Vec<events::Listener>`. 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:
Expand Down

0 comments on commit 24d724b

Please sign in to comment.